mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-18 16:51:51 +03:00
28 lines
583 B
Nix
28 lines
583 B
Nix
{ stdenv, lib, overrideSDK, gmp, idris2Version }:
|
|
let
|
|
stdenv' = if stdenv.isDarwin then overrideSDK stdenv "11.0" else stdenv;
|
|
in
|
|
stdenv'.mkDerivation rec {
|
|
pname = "libidris2_support";
|
|
version = idris2Version;
|
|
|
|
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}
|
|
'';
|
|
}
|