My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/idris-modules/build-builtin-package.nix

25 lines
511 B

# 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:
let
inherit (builtins.parseDrvName idris.name) version;
in
build-idris-package {
inherit pname version;
inherit (idris) src;
noPrelude = true;
noBase = true;
idrisDeps = deps;
postUnpack = ''
sourceRoot=$sourceRoot/libs/${pname}
'';
meta = idris.meta // {
description = "${pname} builtin Idris library";
};
}