Skip to content

Commit

Permalink
Change the ordering of attributes in Nix expressions
Browse files Browse the repository at this point in the history
Inspired in the suggestions made by @jonringer in
NixOS/nixpkgs#94054 (comment)
  • Loading branch information
cript0nauta committed Aug 5, 2020
1 parent 09cece9 commit 02b0399
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pynixify/expression_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@
};
% endif
% if test_requirements:
checkPhase = "true # TODO fill with the real command for testing";
% else:
# TODO FIXME
doCheck = false;
% endif
% if build_requirements:
buildInputs = [ ${' '.join(build_requirements)} ];
% endif
Expand All @@ -79,6 +72,13 @@
checkInputs = [ ${' '.join(test_requirements)} ];
% endif
% if test_requirements:
checkPhase = "true # TODO fill with the real command for testing";
% else:
# TODO FIXME
doCheck = false;
% endif
meta = with lib; {
% if metadata.description:
description = ${metadata.description | nix };
Expand Down

0 comments on commit 02b0399

Please sign in to comment.