3
0
Fork 0
forked from mirrors/nixpkgs

agda: pass through meta

This commit is contained in:
Naïm Favier 2023-01-12 20:49:20 +01:00 committed by Manuel Bärenz
parent aa2ad7a74d
commit bbb6af88eb

View file

@ -22,13 +22,14 @@ let
unwrapped = Agda;
tests = { inherit (nixosTests) agda; };
};
inherit (Agda) meta;
} ''
mkdir -p $out/bin
makeWrapper ${Agda}/bin/agda $out/bin/agda \
--add-flags "--with-compiler=${ghc}/bin/ghc" \
--add-flags "--library-file=${library-file}" \
--add-flags "--local-interfaces"
makeWrapper ${Agda}/bin/agda-mode $out/bin/agda-mode
ln -s ${Agda}/bin/agda-mode $out/bin/agda-mode
''; # Local interfaces has been added for now: See https://github.com/agda/agda/issues/4526
withPackages = arg: if builtins.isAttrs arg then withPackages' arg else withPackages' { pkgs = arg; };