mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-23 03:32:09 +03:00
cf4c87cc71
- align buildIdris function with direction of nixpkgs version. - tangentially, update naming of local variables to follow nixpkgs. - use pname/version instead of name for buildIdris derivations.
25 lines
486 B
Nix
25 lines
486 B
Nix
{ stdenv, lib, gmp, idris2Version }:
|
|
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}
|
|
'';
|
|
}
|