depot/third_party/nixpkgs/pkgs/development/idris-modules/build-builtin-package.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

25 lines
505 B
Nix

# Build one of the packages that comes with idris
# name: The name of the package
# deps: The dependencies of the package
{ idris, build-idris-package }: name: deps:
let
inherit (builtins.parseDrvName idris.name) version;
in
build-idris-package {
inherit name version;
inherit (idris) src;
noPrelude = true;
noBase = true;
idrisDeps = deps;
postUnpack = ''
sourceRoot=$sourceRoot/libs/${name}
'';
meta = idris.meta // {
description = "${name} builtin Idris library";
};
}