agda-prelude-niss

This commit is contained in:
rhiannon morris 2025-04-14 20:35:51 +02:00
parent 66178011aa
commit 51efb95a1e
2 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,24 @@
{ mkDerivation, fetchFromGitea, lib, standard-library }:
let
src = fetchFromGitea {
domain = "git.rhiannon.website";
owner = "rhi";
repo = "agda-prelude";
rev = "d4ad218f8355fdb07c6e544ae3b6bb98165e0a18";
hash = "sha256-rm9IqbEIgiJp/bAEec0brxTMcdrvz0SkvT2TuZ0ubcw=";
};
in
mkDerivation {
pname = "agda-prelude-niss";
version = "0";
libraryName = "prelude";
inherit src;
buildInputs = [ standard-library ];
buildPhase = ''
agda -i. Prelude.agda
'';
meta.description = "not _that_ agda prelude";
meta.license = lib.licenses.wtfpl;
}

View file

@ -26,6 +26,9 @@
(name: pkg: pkgs.haskell.lib.justStaticExecutables pkg) (name: pkg: pkgs.haskell.lib.justStaticExecutables pkg)
(packagesInDir "haskell" [ "ips" ] pkgs.haskellPackages); (packagesInDir "haskell" [ "ips" ] pkgs.haskellPackages);
agdaLibs = pkgs:
(packagesInDir "agda" [ "agda-prelude-niss" ] pkgs.agdaPackages);
makeApp = pkgs: name: exe: { makeApp = pkgs: name: exe: {
inherit name; inherit name;
@ -48,7 +51,8 @@
mkPackages = sys: pkgs: mkPackages = sys: pkgs:
ifLinux64 sys (linuxPackages pkgs) // ifLinux64 sys (linuxPackages pkgs) //
crossPlatformPackages pkgs // fonts pkgs // crossPlatformPackages pkgs // fonts pkgs //
haskellExes pkgs; haskellExes pkgs //
agdaLibs pkgs;
mkApps = sys: pkgs: ifLinux64 sys (linuxApps pkgs); mkApps = sys: pkgs: ifLinux64 sys (linuxApps pkgs);
in { in {