2024-04-02 04:09:38 +03:00
|
|
|
{ stdenv, lib, overrideSDK, gmp, idris2Version }:
|
|
|
|
let
|
|
|
|
stdenv' = if stdenv.isDarwin then overrideSDK stdenv "11.0" else stdenv;
|
|
|
|
in
|
|
|
|
stdenv'.mkDerivation rec {
|
2023-12-27 17:14:03 +03:00
|
|
|
pname = "libidris2_support";
|
2024-01-22 08:05:26 +03:00
|
|
|
version = idris2Version;
|
2023-12-27 17:14:03 +03:00
|
|
|
|
|
|
|
src = ../.;
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
buildInputs = [ gmp ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
2024-04-02 04:09:38 +03:00
|
|
|
] ++ lib.optional stdenv'.isDarwin "OS=";
|
2023-12-27 17:14:03 +03:00
|
|
|
|
|
|
|
buildFlags = [ "support" ];
|
|
|
|
|
|
|
|
installTargets = "install-support";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/idris2-${version}/lib $out/lib
|
|
|
|
mv $out/idris2-${version}/support $out/share
|
|
|
|
rmdir $out/idris2-${version}
|
|
|
|
'';
|
|
|
|
}
|