Skip to content

Commit b1de421

Browse files
authored
agda.withPackages: add libraryFile to passthru (NixOS#447924)
2 parents 114da12 + 1df3c7c commit b1de421

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pkgs/build-support/agda/default.nix

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ let
4444
ghc ? ghcWithPackages (p: with p; [ ieee754 ]),
4545
}:
4646
let
47-
library-file = mkLibraryFile pkgs;
47+
libraryFile = mkLibraryFile pkgs;
4848
pname = "agdaWithPackages";
4949
version = Agda.version;
5050
in
@@ -54,7 +54,10 @@ let
5454
nativeBuildInputs = [ makeWrapper ];
5555
passthru = {
5656
unwrapped = Agda;
57-
inherit withPackages;
57+
inherit
58+
withPackages
59+
libraryFile
60+
;
5861
tests = {
5962
inherit (nixosTests) agda;
6063
allPackages = withPackages (filter self.lib.isUnbrokenAgdaPackage (attrValues self));
@@ -67,7 +70,7 @@ let
6770
mkdir -p $out/bin
6871
makeWrapper ${lib.getExe Agda} $out/bin/agda \
6972
${lib.optionalString (ghc != null) ''--add-flags "--with-compiler=${ghc}/bin/ghc"''} \
70-
--add-flags "--library-file=${library-file}"
73+
--add-flags "--library-file=${libraryFile}"
7174
ln -s ${lib.getExe' Agda "agda-mode"} $out/bin/agda-mode
7275
'';
7376

0 commit comments

Comments
 (0)