2015-11-27 18:17:17 +00:00
|
|
|
# Build one of the packages that come with idris
|
|
|
|
# name: The name of the package
|
|
|
|
# deps: The dependencies of the package
|
|
|
|
{ idris, build-idris-package, lib }: name: deps: build-idris-package {
|
2015-11-27 14:35:59 +00:00
|
|
|
inherit name;
|
|
|
|
|
|
|
|
propagatedBuildInputs = deps;
|
|
|
|
|
|
|
|
inherit (idris) src;
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
mv $sourceRoot/libs/${name} $IDRIS_LIBRARY_PATH
|
|
|
|
sourceRoot=$IDRIS_LIBRARY_PATH/${name}
|
|
|
|
'';
|
2015-11-27 18:17:17 +00:00
|
|
|
|
|
|
|
meta = idris.meta // {
|
|
|
|
description = "${name} builtin Idris library";
|
|
|
|
};
|
|
|
|
}
|