mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 04:09:10 +03:00
25 lines
488 B
Nix
25 lines
488 B
Nix
{ stdenv, lib, gmp, idris2-version }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "libidris2_support";
|
|
version = idris2-version;
|
|
|
|
src = ../.;
|
|
|
|
strictDeps = true;
|
|
buildInputs = [ gmp ];
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
] ++ lib.optional stdenv.isDarwin "OS=";
|
|
|
|
buildFlags = [ "support" ];
|
|
|
|
installTargets = "install-support";
|
|
|
|
postInstall = ''
|
|
mv $out/idris2-${version}/lib $out/lib
|
|
mv $out/idris2-${version}/support $out/share
|
|
rmdir $out/idris2-${version}
|
|
'';
|
|
}
|