forked from mirrors/nixpkgs
agda: pass through meta
This commit is contained in:
parent
aa2ad7a74d
commit
bbb6af88eb
|
@ -22,13 +22,14 @@ let
|
||||||
unwrapped = Agda;
|
unwrapped = Agda;
|
||||||
tests = { inherit (nixosTests) agda; };
|
tests = { inherit (nixosTests) agda; };
|
||||||
};
|
};
|
||||||
|
inherit (Agda) meta;
|
||||||
} ''
|
} ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
makeWrapper ${Agda}/bin/agda $out/bin/agda \
|
makeWrapper ${Agda}/bin/agda $out/bin/agda \
|
||||||
--add-flags "--with-compiler=${ghc}/bin/ghc" \
|
--add-flags "--with-compiler=${ghc}/bin/ghc" \
|
||||||
--add-flags "--library-file=${library-file}" \
|
--add-flags "--library-file=${library-file}" \
|
||||||
--add-flags "--local-interfaces"
|
--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
|
''; # 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; };
|
withPackages = arg: if builtins.isAttrs arg then withPackages' arg else withPackages' { pkgs = arg; };
|
||||||
|
|
Loading…
Reference in a new issue