Skip to content

Commit

Permalink
Merge pull request #273765 from ncfavier/agda-stdlib
Browse files Browse the repository at this point in the history
agdaPackages.standard-library: 1.7.3 -> 2.0
  • Loading branch information
ncfavier authored Dec 28, 2023
2 parents f604139 + ca89b11 commit 6eaf979
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
8 changes: 6 additions & 2 deletions pkgs/development/libraries/agda/agda-categories/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ lib, mkDerivation, fetchFromGitHub, standard-library }:

mkDerivation rec {
version = "0.1.7.2";
version = "0.2.0";
pname = "agda-categories";

src = fetchFromGitHub {
owner = "agda";
repo = "agda-categories";
rev = "v${version}";
sha256 = "sha256-lQzAfPqkdb0pG5seYVODPngSLrJxhbH1jf0K6qqoj3c=";
sha256 = "sha256-GQuQxzYSQxAIVSJ1vf0blRC0juoxAqD1AHW66H/6NSk=";
};

postPatch = ''
Expand All @@ -26,6 +26,10 @@ mkDerivation rec {
find src -name '*.agda' | sed -e 's|^src/[/]*|import |' -e 's|/|.|g' -e 's/.agda//' -e '/import Everything/d' | LC_COLLATE='C' sort > Everything.agda
'';

# agda: Heap exhausted;
# agda: Current maximum heap size is 4294967296 bytes (4096 MB).
GHCRTS = "-M5G";

buildInputs = [ standard-library ];

meta = with lib; {
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/libraries/agda/agdarsec/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ mkDerivation rec {
license = licenses.gpl3;
platforms = platforms.unix;
maintainers = with maintainers; [ turion ];
broken = true;
};
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ fetchFromGitHub, lib, mkDerivation, standard-library }:

mkDerivation rec {
version = "0.4.1";
version = "0.5.0";
pname = "functional-linear-algebra";

buildInputs = [ standard-library ];
Expand All @@ -10,7 +10,7 @@ mkDerivation rec {
repo = "functional-linear-algebra";
owner = "ryanorendorff";
rev = "v${version}";
sha256 = "GrTeMEHEXb0t2RgHWiGfvvofNYl8YYaaoCE18JrG6Q4=";
sha256 = "sha256-3nme/eH4pY6bD0DkhL4Dj/Vp/WnZqkQtZTNk+n1oAyY=";
};

preConfigure = ''
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/libraries/agda/standard-library/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

mkDerivation rec {
pname = "standard-library";
version = "1.7.3";
version = "2.0";

src = fetchFromGitHub {
repo = "agda-stdlib";
owner = "agda";
rev = "v${version}";
hash = "sha256-vtL6VPvTXhl/mepulUm8SYyTjnGsqno4RHDmTIy22Xg=";
hash = "sha256-TjGvY3eqpF+DDwatT7A78flyPcTkcLHQ1xcg+MKgCoE=";
};

nativeBuildInputs = [ (ghcWithPackages (self : [ self.filemanip ])) ];
preConfigure = ''
runhaskell GenerateEverything.hs
runhaskell GenerateEverything.hs --include-deprecated
# We will only build/consider Everything.agda, in particular we don't want Everything*.agda
# do be copied to the store.
rm EverythingSafe.agda
Expand Down

0 comments on commit 6eaf979

Please sign in to comment.