1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 21:54:10 +00:00
nixpkgs/pkgs/development/idris-modules/build-idris-package.nix

24 lines
472 B
Nix
Raw Normal View History

2015-11-27 18:17:17 +00:00
# Build an idris package
#
# args: Additional arguments to pass to mkDerivation. Generally should include at least
# name and src.
{ stdenv, idris, gmp }: args: stdenv.mkDerivation ({
buildPhase = ''
idris --build *.ipkg
'';
doCheck = true;
checkPhase = ''
if grep -q test *.ipkg; then
idris --testpkg *.ipkg
fi
'';
installPhase = ''
idris --install *.ipkg --ibcsubdir $IBCSUBDIR
'';
2015-11-27 16:03:04 +00:00
buildInputs = [ gmp idris ];
2015-11-27 18:17:17 +00:00
} // args)