2017-11-06 19:18:59 +01:00
|
|
|
# Build one of the packages that comes with idris
|
2015-11-27 19:17:17 +01:00
|
|
|
# name: The name of the package
|
|
|
|
# deps: The dependencies of the package
|
2017-08-23 02:48:56 +02:00
|
|
|
{ idris, build-idris-package, lib }: name: deps:
|
|
|
|
let
|
|
|
|
inherit (builtins.parseDrvName idris.name) version;
|
|
|
|
in
|
|
|
|
build-idris-package {
|
2015-11-27 15:35:59 +01:00
|
|
|
|
2017-11-06 19:18:59 +01:00
|
|
|
inherit name version;
|
2015-11-27 15:35:59 +01:00
|
|
|
inherit (idris) src;
|
|
|
|
|
2017-11-06 19:18:59 +01:00
|
|
|
idrisDeps = deps;
|
|
|
|
|
2015-11-27 15:35:59 +01:00
|
|
|
postUnpack = ''
|
2017-08-23 02:49:25 +02:00
|
|
|
sourceRoot=$sourceRoot/libs/${name}
|
|
|
|
'';
|
|
|
|
|
2015-11-27 19:17:17 +01:00
|
|
|
meta = idris.meta // {
|
|
|
|
description = "${name} builtin Idris library";
|
|
|
|
};
|
|
|
|
}
|