Use version variables for easier upgrading

This commit is contained in:
Benno Fünfstück 2014-01-14 21:33:11 +01:00
parent 9c4a58515d
commit 9d6ab791af
4 changed files with 19 additions and 15 deletions

View File

@ -1,10 +1,11 @@
{ stdenv, fetchurl, gupnp, pkgconfig }:
stdenv.mkDerivation {
name = "gupnp-av-0.12.4";
version = "0.12.4";
stdenv.mkDerivation rec {
name = "gupnp-av-${version}";
majorVersion = "0.12";
version = "${majorVersion}.4";
src = fetchurl {
url = mirror://gnome/sources/gupnp-av/0.12/gupnp-av-0.12.4.tar.xz;
url = "mirror://gnome/sources/gupnp-av/${majorVersion}/gupnp-av-${version}.tar.xz";
sha256 = "0nvsvpiyfslz54j4hjh2gsdjkbi2qj2f4k0aw8s7f05kibprr2jl";
};

View File

@ -1,11 +1,11 @@
{ stdenv, fetchurl, pkgconfig, glib, libxml2, gssdp, libsoup, libuuid }:
stdenv.mkDerivation {
name = "gupnp-0.20.9";
version = "0.20.9";
stdenv.mkDerivation rec {
name = "gupnp-${version}";
majorVersion = "0.20";
version = "${majorVersion}.9";
src = fetchurl {
url = mirror://gnome/sources/gupnp/0.20/gupnp-0.20.9.tar.xz;
url = "mirror://gnome/sources/gupnp/${majorVersion}/gupnp-${version}.tar.xz";
sha256 = "0vicydn3f72x1rqql7857ans85mg7dfap7n7h8xrfyb9whxhlrb1";
};

View File

@ -3,12 +3,13 @@
, libintlOrEmpty
, intltool, python }:
stdenv.mkDerivation {
name = "libsoup-2.45";
version = "2.45";
stdenv.mkDerivation rec {
name = "libsoup-${version}";
majorVersion = "2.45";
version = "${majorVersion}.3";
src = fetchurl {
url = mirror://gnome/sources/libsoup/2.45/libsoup-2.45.3.tar.xz;
url = "mirror://gnome/sources/libsoup/${majorVersion}/libsoup-${version}.tar.xz";
sha256 = "04ma47hcrrbjp90r8jjn686cngnbgac24wgarpwwzlpg66wighva";
};

View File

@ -1,9 +1,11 @@
{fetchurl, stdenv, gupnp, gssdp, pkgconfig, gtk3, libuuid, intltool, gupnp_av, gnome3, makeWrapper}:
stdenv.mkDerivation rec {
name = "gupnp-tools-0.6";
name = "gupnp-tools-${version}";
majorVersion = "0.8";
version = "${majorVersion}.8";
src = fetchurl {
url = mirror://gnome/sources/gupnp-tools/0.8/gupnp-tools-0.8.8.tar.xz;
url = "mirror://gnome/sources/gupnp-tools/${majorVersion}/gupnp-tools-${version}.tar.xz";
sha256 = "160dgh9pmlb85qfavwqz46lqawpshs8514bx2b57f9rbiny8kbij";
};