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:
Daniel Schaefer
2019-05-12 22:23:48 +02:00
parent 5b9bb1b431
commit b85ccbac54
29 changed files with 205 additions and 113 deletions
@@ -1,27 +1,28 @@
{ stdenv, fetchurl, pkgconfig, glib, gtk2, dbus-glib }:
stdenv.mkDerivation rec {
name = "libunique-1.1.6";
pname = "libunique";
version = "1.1.6";
src = fetchurl {
url = "mirror://gnome/sources/libunique/1.1/${name}.tar.bz2";
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
sha256 = "1fsgvmncd9caw552lyfg8swmsd6bh4ijjsph69bwacwfxwf09j75";
};
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
# patches from Gentoo portage
# Patches from Gentoo portage
patches = [
./1.1.6-compiler-warnings.patch
./1.1.6-fix-test.patch
./1.1.6-G_CONST_RETURN.patch
./1.1.6-include-terminator.patch
]
++ [ ./gcc7-bug.patch ];
] ++ [ ./gcc7-bug.patch ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib gtk2 dbus-glib ];
# don't make deprecated usages hard errors
# Don't make deprecated usages hard errors
preBuild = ''substituteInPlace unique/dbus/Makefile --replace -Werror ""'';
doCheck = true;