mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
Build AgdaStdlib before installing it
This commit is contained in:
parent
66bcd77f0e
commit
854b1fb9fb
@ -1,4 +1,4 @@
|
||||
{ cabal, fetchurl }:
|
||||
{ cabal, fetchurl, filemanip, Agda }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "Agda-stdlib";
|
||||
@ -9,11 +9,16 @@ cabal.mkDerivation (self: {
|
||||
sha256 = "1ynjgqk8hhnm6rbngy8fjsrd6i4phj2hlan9bk435bbywbl366k3";
|
||||
};
|
||||
|
||||
buildDepends = [ filemanip Agda ];
|
||||
|
||||
preConfigure = "cd ffi";
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share
|
||||
cp -pR ../src $out/share/agda
|
||||
cd ..
|
||||
runhaskell GenerateEverything
|
||||
agda -i . -i src Everything.agda
|
||||
cp -pR src $out/share/agda
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user