@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pkgconfig, libtool, curl
1+{ stdenv, fetchFromGitHub, pkgconfig, libtool, curl
22, python, munge, perl, pam, openssl
33, ncurses, mysql, gtk2, lua, hwloc, numactl
44, readline, freeipmi, libssh2, xorg
@@ -8,11 +8,16 @@
88
99stdenv.mkDerivation rec {
1010 name = "slurm-${version}";
11− version = "17.11.5";
11+ version = "17.11.7";
1212
13− src = fetchurl {
14− url = "https://download.schedmd.com/slurm/${name}.tar.bz2";
15− sha256 = "07ghyyz12k4rksm06xf7dshwp1ndm13zphdbqja99401q4xwbx9r";
13+ # N.B. We use github release tags instead of https://www.schedmd.com/downloads.php
14+ # because the latter does not keep older releases.
15+ src = fetchFromGitHub {
16+ owner = "SchedMD";
17+ repo = "slurm";
18+ # The release tags use - instead of ., and have an extra -1 suffix.
19+ rev = "${builtins.replaceStrings ["."] ["-"] name}-1";
20+ sha256 = "00dgirjd75i1x6pj80avp18hx5gr3dsnh13vbkqbf0iwpd72qyhp";
1621 };
1722
1823 outputs = [ "out" "dev" ];