elixir: add passthru.updateScript based on major/minor
This should avoid 1.18 from upgrading to 1.19-rc*
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
fetchFromGitHub,
|
||||
erlang,
|
||||
makeWrapper,
|
||||
nix-update-script,
|
||||
coreutils,
|
||||
curl,
|
||||
bash,
|
||||
@@ -117,6 +118,15 @@ stdenv.mkDerivation ({
|
||||
--replace "/usr/bin/env elixir" "${elixirShebang}"
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--version-regex"
|
||||
"v(${lib.versions.major version}\\.${lib.versions.minor version}\\.[0-9\\-rc.]+)"
|
||||
"--override-filename"
|
||||
"pkgs/development/interpreters/elixir/${lib.versions.major version}.${lib.versions.minor version}.nix"
|
||||
];
|
||||
};
|
||||
|
||||
pos = builtins.unsafeGetAttrPos "sha256" args;
|
||||
meta = with lib; {
|
||||
homepage = "https://elixir-lang.org/";
|
||||
|
||||
Reference in New Issue
Block a user