mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 20:54:56 +00:00
25 lines
469 B
Nix
25 lines
469 B
Nix
# Build one of the packages that comes with idris
|
|
# pname: The pname of the package
|
|
# deps: The dependencies of the package
|
|
{ idris, build-idris-package }:
|
|
pname: deps:
|
|
build-idris-package {
|
|
|
|
inherit pname;
|
|
inherit (idris) version;
|
|
inherit (idris) src;
|
|
|
|
noPrelude = true;
|
|
noBase = true;
|
|
|
|
idrisDeps = deps;
|
|
|
|
postUnpack = ''
|
|
sourceRoot=$sourceRoot/libs/${pname}
|
|
'';
|
|
|
|
meta = idris.meta // {
|
|
description = "${pname} builtin Idris library";
|
|
};
|
|
}
|