summary refs log blame commit diff
path: root/pkgs/development/idris-modules/build-builtin-package.nix
blob: ff19e52135c806397ccb1a872f86030d89894ec7 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                 

                                       
                                           



                                                     
 
                       

                      

                   
 

                   
                 


                                       



                                                  
# 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 }: name: deps:
let
  inherit (builtins.parseDrvName idris.name) version;
in
build-idris-package {

  inherit name version;
  inherit (idris) src;

  noPrelude = true;
  noBase = true;

  idrisDeps = deps;

  postUnpack = ''
    sourceRoot=$sourceRoot/libs/${name}
  '';

  meta = idris.meta // {
    description = "${name} builtin Idris library";
  };
}