Skip to content

Commit 9071626

Browse files
committed
fix nix ci, take two
don't need to change permissions, but do need to add the right dir to $PATH ./dist/build has two subdirs: agda2hs and agda2hs-test top-level build dir doesn't actually contain any executables
1 parent 0c88c57 commit 9071626

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

nix/lib.nix

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@ let
1212
};
1313
hpkg = (pkgs.haskellPackages.callPackage (hsrc "") {}).overrideAttrs (
1414
finAttr: preAttr: {
15-
# make executables executable and add ./dist/build to PATH
15+
# add ./dist/build/agda2hs to $PATH because
1616
# cabal2nix doesn't pick up agda2hs from build-tool-depends of the test suite
1717
# my (@liesnikov) guess is that since the intermediate binary
1818
# is not a separate derivation it's hard to form a fixpoint on a derivation level
19-
preCheck = ''
20-
find dist/build -exec chmod u+X {} +
21-
export PATH=$(pwd)/dist/build/:$PATH
22-
'';
19+
preCheck = "export PATH=$(pwd)/dist/build/agda2hs:$PATH";
2320
}
2421
);
2522
expr = import ./agda2hs.nix;

0 commit comments

Comments
 (0)