nixpkgs/pkgs/development/idris-modules/build-builtin-package.nix
Silvan Mosberger 5f620d0e22
build-idris-package: includePreludeBase -> noPrelude, noBase
Resembles idris --noprelude and --nobasepkgs arguments
2018-07-05 19:10:27 +02:00

26 lines
510 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, lib }: 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";
};
}