polyml: move definition of src attribute to standard location

This commit is contained in:
someplaceguy 2023-10-30 16:05:18 +00:00
parent 72061433dd
commit 69d4020bbb

View File

@ -10,6 +10,13 @@ stdenv.mkDerivation rec {
pname = "polyml";
version = "5.9.1";
src = fetchFromGitHub {
owner = "polyml";
repo = "polyml";
rev = "v${version}";
sha256 = "sha256-72wm8dt+Id59A5058mVE5P9TkXW5/LZRthZoxUustVA=";
};
prePatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace configure.ac --replace stdc++ c++
'';
@ -24,13 +31,6 @@ stdenv.mkDerivation rec {
"--with-gmp"
];
src = fetchFromGitHub {
owner = "polyml";
repo = "polyml";
rev = "v${version}";
sha256 = "sha256-72wm8dt+Id59A5058mVE5P9TkXW5/LZRthZoxUustVA=";
};
meta = with lib; {
description = "Standard ML compiler and interpreter";
longDescription = ''