mate: remove major-ver and minor-ver
Keep only the version atribute in derivations, with the full version string of the package. This will make it easier to write a script for automatic updating of the packages using the update-source-version command from common-updater-scripts.
This commit is contained in:
@@ -3,20 +3,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mate-themes-${version}";
|
||||
version = "${major-ver}.${minor-ver}";
|
||||
# There is no 3.24 release.
|
||||
major-ver = if stdenv.lib.versionOlder gnome3.version "3.23" then gnome3.version else "3.22";
|
||||
minor-ver = {
|
||||
"3.20" = "23";
|
||||
"3.22" = "14";
|
||||
}."${major-ver}";
|
||||
version = "3.22.14";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://pub.mate-desktop.org/releases/themes/${major-ver}/${name}.tar.xz";
|
||||
sha256 = {
|
||||
"3.20" = "0xmcm1kmkhbakhwy5vvx3gll5v2gvihwnbf0gyjf75fys6h3818g";
|
||||
"3.22" = "09fqvlnmrvc73arl7jv9ygkxi46lw7c1q8qra6w3ap7x83f9zdak";
|
||||
}."${major-ver}";
|
||||
url = "http://pub.mate-desktop.org/releases/themes/${mate.getRelease version}/${name}.tar.xz";
|
||||
sha256 = "09fqvlnmrvc73arl7jv9ygkxi46lw7c1q8qra6w3ap7x83f9zdak";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig intltool ];
|
||||
|
||||
Reference in New Issue
Block a user