Skip to content

Commit

Permalink
nix: disable checks in regular build
Browse files Browse the repository at this point in the history
The script will only work after patching, so regular checks don’t work on proper nixos.
  • Loading branch information
hraban committed May 5, 2023
1 parent 01e30e5 commit 4a1eece
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@
src = ./.;
outputs = [ "out" "doc" ];
buildPhase = ''
# Remove the stale VCS copy
rm tomono
${myemacs}/bin/emacs --batch --load emacs-docker/init.el --load publish.el
'';
doCheck = true;
checkPhase = ''
./tomono --help
'';
installPhase = ''
mkdir -p $out/{bin,doc}
cp tomono $out/bin/
Expand All @@ -42,7 +40,6 @@
# the outputs attr on the derivation.
cp index.html style.css $out/doc
'';
doInstallCheck = true;
installCheckPhase = ''
$out/bin/tomono --help
'';
Expand Down Expand Up @@ -91,6 +88,7 @@
self.packages.${system}.default
pkgs.makeWrapper
];
doCheck = true;
checkPhase = ''
# Ensure we're testing the pre-built tomono derivation, not the new one
rm -f tomono
Expand All @@ -102,7 +100,6 @@
./test
'';
installPhase = "echo done > $out";
doInstallCheck = false;
dontFixup = true;
});
});
Expand Down

0 comments on commit 4a1eece

Please sign in to comment.