mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
24 lines
503 B
Nix
24 lines
503 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;
|
|
|
|
includePreludeBase = false;
|
|
|
|
idrisDeps = deps;
|
|
|
|
postUnpack = ''
|
|
sourceRoot=$sourceRoot/libs/${name}
|
|
'';
|
|
|
|
meta = idris.meta // {
|
|
description = "${name} builtin Idris library";
|
|
};
|
|
}
|