libgudev: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 03:56:57 +01:00
parent f15a13f4a6
commit 8972bc5db8
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,11 +1,13 @@
{ stdenv, fetchurl, pkgconfig, udev, glib }: { stdenv, fetchurl, pkgconfig, udev, glib, gnome3 }:
stdenv.mkDerivation rec { let
pname = "libgudev";
in stdenv.mkDerivation rec {
name = "libgudev-${version}"; name = "libgudev-${version}";
version = "232"; version = "232";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/libgudev/${version}/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "ee4cb2b9c573cdf354f6ed744f01b111d4b5bed3503ffa956cefff50489c7860"; sha256 = "ee4cb2b9c573cdf354f6ed744f01b111d4b5bed3503ffa956cefff50489c7860";
}; };
@ -15,9 +17,16 @@ stdenv.mkDerivation rec {
# There's a dependency cycle with umockdev and the tests fail to LD_PRELOAD anyway. # There's a dependency cycle with umockdev and the tests fail to LD_PRELOAD anyway.
configureFlags = [ "--disable-umockdev" ]; configureFlags = [ "--disable-umockdev" ];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
versionPolicy = "none";
};
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Projects/libgudev; homepage = https://wiki.gnome.org/Projects/libgudev;
maintainers = [ maintainers.eelco ]; maintainers = [ maintainers.eelco ] ++ gnome3.maintainers;
platforms = platforms.linux; platforms = platforms.linux;
license = licenses.lgpl2Plus; license = licenses.lgpl2Plus;
}; };