diff options
author | Daniel Schaefer <git@danielschaefer.me> | 2019-04-25 08:46:07 +0200 |
---|---|---|
committer | Daniel Schaefer <git@danielschaefer.me> | 2019-05-12 22:23:48 +0200 |
commit | b85ccbac54738a9979af11e0582b5d0ed1c50cbd (patch) | |
tree | dc215fd637742e214fe52dd3ed152f93641762f9 /pkgs/development/libraries/gcab | |
parent | 5b9bb1b4311d93085ae3e94bf024d88d150b11eb (diff) |
treewide: Add passthru.updateScript to gnome pkgs
`updateScript` lets us update packages automatically. For packages that are hosted on the gnome mirror it's very easy to add that. Inspired by https://github.com/NixOS/nixpkgs/issues/36150
Diffstat (limited to 'pkgs/development/libraries/gcab')
-rw-r--r-- | pkgs/development/libraries/gcab/default.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/development/libraries/gcab/default.nix b/pkgs/development/libraries/gcab/default.nix index 2b9b59e7baf6e..397fee3f34c1e 100644 --- a/pkgs/development/libraries/gcab/default.nix +++ b/pkgs/development/libraries/gcab/default.nix @@ -1,15 +1,15 @@ { stdenv, fetchurl, gettext, gobject-introspection, pkgconfig -, meson, ninja, glibcLocales, git, vala, glib, zlib +, meson, ninja, glibcLocales, git, vala, glib, zlib, gnome3 }: stdenv.mkDerivation rec { - name = "gcab-${version}"; + pname = "gcab"; version = "1.2"; LC_ALL = "en_US.UTF-8"; src = fetchurl { - url = "mirror://gnome/sources/gcab/${version}/${name}.tar.xz"; + url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; sha256 = "038h5kk41si2hc9d9169rrlvp8xgsxq27kri7hv2vr39gvz9cbas"; }; @@ -22,10 +22,16 @@ stdenv.mkDerivation rec { "-Dtests=false" ]; + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + versionPolicy = "none"; + }; + }; + meta = with stdenv.lib; { platforms = platforms.linux; license = licenses.lgpl21; maintainers = [ maintainers.lethalman ]; }; - } |