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