2020-04-24 23:36:52 +00:00
|
|
|
# Build one of the packages that comes with idris
|
2022-03-05 16:20:37 +00:00
|
|
|
# pname: The pname of the package
|
2020-04-24 23:36:52 +00:00
|
|
|
# deps: The dependencies of the package
|
2022-03-05 16:20:37 +00:00
|
|
|
{ idris, build-idris-package }: pname: deps:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
|
|
|
inherit (builtins.parseDrvName idris.name) version;
|
|
|
|
in
|
|
|
|
build-idris-package {
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
inherit pname version;
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (idris) src;
|
|
|
|
|
|
|
|
noPrelude = true;
|
|
|
|
noBase = true;
|
|
|
|
|
|
|
|
idrisDeps = deps;
|
|
|
|
|
|
|
|
postUnpack = ''
|
2022-03-05 16:20:37 +00:00
|
|
|
sourceRoot=$sourceRoot/libs/${pname}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = idris.meta // {
|
2022-03-05 16:20:37 +00:00
|
|
|
description = "${pname} builtin Idris library";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|