depot/third_party/nixpkgs/pkgs/development/libraries/agda/standard-library/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

30 lines
1,007 B
Nix

{ lib, mkDerivation, fetchFromGitHub, ghcWithPackages, nixosTests }:
mkDerivation rec {
pname = "standard-library";
version = "2.1.1";
src = fetchFromGitHub {
repo = "agda-stdlib";
owner = "agda";
rev = "v${version}";
hash = "sha256-4HfwNAkIhk1yC/oSxZ30xilzUM5/22nzbUSqTjcW5Ng=";
};
nativeBuildInputs = [ (ghcWithPackages (self : [ self.filemanip ])) ];
preConfigure = ''
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
'';
passthru.tests = { inherit (nixosTests) agda; };
meta = with lib; {
homepage = "https://wiki.portal.chalmers.se/agda/pmwiki.php?n=Libraries.StandardLibrary";
description = "Standard library for use with the Agda compiler";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
maintainers = with maintainers; [ jwiegley mudri alexarice turion ];
};
}