Skip to content

Commit

Permalink
don't run checks when building
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Dec 1, 2020
1 parent a678d73 commit ee8b5d7
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions default.nix
Expand Up @@ -3,28 +3,5 @@
let
naersk = pkgs.callPackage sources.naersk { };
gitignore = import sources.gitignore { };

source = gitignore.gitignoreSource ./.;

# naerk's checkPhase does not have the tests directory available in checkPhase,
# so we work around it with a separate derivation. There's probably a nicer
# way around this but I don't know it right now.
package = naersk.buildPackage source;
in pkgs.stdenv.mkDerivation {
name = package.name;
version = package.version;
src = source;

buildInputs = [ package pkgs.jq ];
buildPhase = "true";

doCheck = true;
checkPhase = ''
env PATH="${package}/bin:$PATH" script/run-integration-tests.sh
'';

installPhase = ''
ln -s ${package} $out
'';
}
in naersk.buildPackage (gitignore.gitignoreSource ./.)

0 comments on commit ee8b5d7

Please sign in to comment.