1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

openmpi: refactor version string for auto updates

This commit is contained in:
Markus Kowalewski 2018-11-10 16:27:47 +01:00
parent 948e260117
commit a3cb3fb64b
No known key found for this signature in database
GPG key ID: D865C8A91D7025EB

View file

@ -9,14 +9,13 @@
}:
let
majorVersion = "3.1";
minorVersion = "3";
version = "3.1.3";
in stdenv.mkDerivation rec {
name = "openmpi-${majorVersion}.${minorVersion}";
name = "openmpi-${version}";
src = fetchurl {
url = "http://www.open-mpi.org/software/ompi/v${majorVersion}/downloads/${name}.tar.bz2";
src = with stdenv.lib.versions; fetchurl {
url = "http://www.open-mpi.org/software/ompi/v${major version}.${minor version}/downloads/${name}.tar.bz2";
sha256 = "1dks11scivgaskjs5955y9wprsl12wr3gn5r7wfl0l8gq03l7q4b";
};