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
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
{ stdenv, fetchurl, pkgconfig, gtk2, intltool, xorg }:
|
||||
|
||||
let
|
||||
ver_maj = "2.31";
|
||||
ver_min = "0";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libwnck-${ver_maj}.${ver_min}";
|
||||
pname = "libwnck";
|
||||
version = "2.31.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/libwnck/${ver_maj}/${name}.tar.xz";
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "17isfjvrzgj5znld2a7zsk9vd39q9wnsysnw5jr8iz410z935xw3";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user