depot/third_party/nixpkgs/pkgs/development/idris-modules/build-builtin-package.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

25 lines
511 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:
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";
};
}