mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Agda: prebuild all of the new builtin modules
This commit is contained in:
parent
d541e0dc1c
commit
68e1419cb8
@ -847,13 +847,22 @@ self: {
|
|||||||
];
|
];
|
||||||
executableToolDepends = [ emacs ];
|
executableToolDepends = [ emacs ];
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
$out/bin/agda -c --no-main $(find $out/share -name Primitive.agda)
|
# Separate loops to avoid internal error
|
||||||
|
files=($out/share/*-ghc-*/Agda-*/lib/prim/Agda/{Primitive.agda,Builtin/*.agda})
|
||||||
|
for f in "''${files[@]}"
|
||||||
|
do
|
||||||
|
$out/bin/agda $f
|
||||||
|
done
|
||||||
|
for f in "''${files[@]}"
|
||||||
|
do
|
||||||
|
$out/bin/agda -c --no-main $f
|
||||||
|
done
|
||||||
$out/bin/agda-mode compile
|
$out/bin/agda-mode compile
|
||||||
'';
|
'';
|
||||||
homepage = "http://wiki.portal.chalmers.se/agda/";
|
homepage = "http://wiki.portal.chalmers.se/agda/";
|
||||||
description = "A dependently typed functional programming language and proof assistant";
|
description = "A dependently typed functional programming language and proof assistant";
|
||||||
license = "unknown";
|
license = "unknown";
|
||||||
maintainers = with stdenv.lib.maintainers; [ abbradar ];
|
maintainers = with stdenv.lib.maintainers; [ abbradar mudri ];
|
||||||
}) {inherit (pkgs) emacs;};
|
}) {inherit (pkgs) emacs;};
|
||||||
|
|
||||||
"Agda-executable" = callPackage
|
"Agda-executable" = callPackage
|
||||||
|
Loading…
Reference in New Issue
Block a user