2017-11-06 10:18:59 -08:00
|
|
|
# Build one of the packages that comes with idris
|
2015-11-27 10:17:17 -08:00
|
|
|
# name: The name of the package
|
|
|
|
# deps: The dependencies of the package
|
2018-07-20 17:44:44 -07:00
|
|
|
{ idris, build-idris-package }: name: deps:
|
2017-08-22 17:48:56 -07:00
|
|
|
let
|
|
|
|
inherit (builtins.parseDrvName idris.name) version;
|
|
|
|
in
|
|
|
|
build-idris-package {
|
2015-11-27 06:35:59 -08:00
|
|
|
|
2017-11-06 10:18:59 -08:00
|
|
|
inherit name version;
|
2015-11-27 06:35:59 -08:00
|
|
|
inherit (idris) src;
|
|
|
|
|
2018-07-03 12:19:28 -07:00
|
|
|
noPrelude = true;
|
|
|
|
noBase = true;
|
2018-07-01 20:18:08 -07:00
|
|
|
|
2017-11-06 10:18:59 -08:00
|
|
|
idrisDeps = deps;
|
|
|
|
|
2015-11-27 06:35:59 -08:00
|
|
|
postUnpack = ''
|
2017-08-22 17:49:25 -07:00
|
|
|
sourceRoot=$sourceRoot/libs/${name}
|
|
|
|
'';
|
|
|
|
|
2015-11-27 10:17:17 -08:00
|
|
|
meta = idris.meta // {
|
|
|
|
description = "${name} builtin Idris library";
|
|
|
|
};
|
|
|
|
}
|