Skip to content

Commit 4d3c5d0

Browse files
committed
agda: use getBin Agda instead of Agda.bin
Makes the wrapper work if `enableSeparateBinOutput` is off.
1 parent a94dd3a commit 4d3c5d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/build-support/agda/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ let
6565
}
6666
''
6767
mkdir -p $out/bin
68-
makeWrapper ${Agda.bin}/bin/agda $out/bin/agda \
68+
makeWrapper ${lib.getBin Agda}/bin/agda $out/bin/agda \
6969
${lib.optionalString (ghc != null) ''--add-flags "--with-compiler=${ghc}/bin/ghc"''} \
7070
--add-flags "--library-file=${library-file}"
71-
ln -s ${Agda.bin}/bin/agda-mode $out/bin/agda-mode
71+
ln -s ${lib.getBin Agda}/bin/agda-mode $out/bin/agda-mode
7272
'';
7373

7474
withPackages = arg: if isAttrs arg then withPackages' arg else withPackages' { pkgs = arg; };

0 commit comments

Comments
 (0)