3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/idris-modules/build-builtin-package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
511 B
Nix
Raw Normal View History

# Build one of the packages that comes with idris
2022-02-14 22:08:24 +00:00
# pname: The pname of the package
2015-11-27 18:17:17 +00:00
# deps: The dependencies of the package
2022-02-14 22:08:24 +00:00
{ idris, build-idris-package }: pname: deps:
let
inherit (builtins.parseDrvName idris.name) version;
in
build-idris-package {
2022-02-14 22:08:24 +00:00
inherit pname version;
inherit (idris) src;
noPrelude = true;
noBase = true;
2018-07-02 04:18:08 +01:00
idrisDeps = deps;
postUnpack = ''
2022-02-14 22:08:24 +00:00
sourceRoot=$sourceRoot/libs/${pname}
2017-08-23 01:49:25 +01:00
'';
2015-11-27 18:17:17 +00:00
meta = idris.meta // {
2022-02-14 22:08:24 +00:00
description = "${pname} builtin Idris library";
2015-11-27 18:17:17 +00:00
};
}