mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
947e7d80b4
The main two changes are 1. Completely rewrite how with-packages works to remove use of envHooks 2. The package description is now an idris specific set rather than being a subset of the arguments to mkDerivation. This mirrors the way Haskell packages are treated.
23 lines
472 B
Nix
23 lines
472 B
Nix
# Build one of the packages that comes with idris
|
|
# name: The name of the package
|
|
# deps: The dependencies of the package
|
|
{ idris, build-idris-package, lib }: name: deps:
|
|
let
|
|
inherit (builtins.parseDrvName idris.name) version;
|
|
in
|
|
build-idris-package {
|
|
|
|
inherit name version;
|
|
inherit (idris) src;
|
|
|
|
idrisDeps = deps;
|
|
|
|
postUnpack = ''
|
|
sourceRoot=$sourceRoot/libs/${name}
|
|
'';
|
|
|
|
meta = idris.meta // {
|
|
description = "${name} builtin Idris library";
|
|
};
|
|
}
|