openmpi: refactor version string for auto updates
This commit is contained in:
parent
948e260117
commit
a3cb3fb64b
@ -9,14 +9,13 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
majorVersion = "3.1";
|
version = "3.1.3";
|
||||||
minorVersion = "3";
|
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
name = "openmpi-${majorVersion}.${minorVersion}";
|
name = "openmpi-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = with stdenv.lib.versions; fetchurl {
|
||||||
url = "http://www.open-mpi.org/software/ompi/v${majorVersion}/downloads/${name}.tar.bz2";
|
url = "http://www.open-mpi.org/software/ompi/v${major version}.${minor version}/downloads/${name}.tar.bz2";
|
||||||
sha256 = "1dks11scivgaskjs5955y9wprsl12wr3gn5r7wfl0l8gq03l7q4b";
|
sha256 = "1dks11scivgaskjs5955y9wprsl12wr3gn5r7wfl0l8gq03l7q4b";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user