summary refs log tree commit diff
path: root/pkgs/development/idris-modules/build-builtin-package.nix
blob: 44efa97a53193a34d6f1e9e170afcccc486535b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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";
  };
}