1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/development/idris-modules/build-builtin-package.nix

23 lines
472 B
Nix
Raw Normal View History

# Build one of the packages that comes with idris
2015-11-27 18:17:17 +00:00
# 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;
idrisDeps = deps;
postUnpack = ''
2017-08-23 01:49:25 +01:00
sourceRoot=$sourceRoot/libs/${name}
'';
2015-11-27 18:17:17 +00:00
meta = idris.meta // {
description = "${name} builtin Idris library";
};
}