libhttpseverywhere: add updateScript

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

View File

@ -1,22 +1,21 @@
{ stdenv, fetchurl, pkgconfig, meson, ninja, valadoc { stdenv, fetchurl, pkgconfig, meson, ninja, valadoc
, gnome3, glib, json-glib, libarchive, libsoup, gobjectIntrospection }: , gnome3, glib, json-glib, libarchive, libsoup, gobjectIntrospection }:
stdenv.mkDerivation rec { let
major = "0.6"; pname = "libhttpseverywhere";
minor = "5"; version = "0.6.5";
version = "${major}.${minor}"; in stdenv.mkDerivation rec {
name = "${pname}-${version}";
name = "libhttpseverywhere-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/libhttpseverywhere/${major}/libhttpseverywhere-${version}.tar.xz"; url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "0ksf6vqjyjii29dvy5147dmgqlqsq4d70xxai0p2prkx4jrwgj3z"; sha256 = "0ksf6vqjyjii29dvy5147dmgqlqsq4d70xxai0p2prkx4jrwgj3z";
}; };
nativeBuildInputs = [ gnome3.vala gobjectIntrospection meson ninja pkgconfig valadoc ]; nativeBuildInputs = [ gnome3.vala gobjectIntrospection meson ninja pkgconfig valadoc ];
buildInputs = [ glib gnome3.libgee json-glib libsoup libarchive ]; buildInputs = [ glib gnome3.libgee json-glib libsoup libarchive ];
mesonFlags = "-Denable_valadoc=true"; mesonFlags = [ "-Denable_valadoc=true" ];
doCheck = true; doCheck = true;
@ -24,11 +23,17 @@ stdenv.mkDerivation rec {
outputs = [ "out" "devdoc" ]; outputs = [ "out" "devdoc" ];
meta = { passthru = {
description = "library to use HTTPSEverywhere in desktop applications"; updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "Library to use HTTPSEverywhere in desktop applications";
homepage = https://git.gnome.org/browse/libhttpseverywhere; homepage = https://git.gnome.org/browse/libhttpseverywhere;
license = stdenv.lib.licenses.lgpl3; license = licenses.lgpl3;
platforms = stdenv.lib.platforms.linux; platforms = platforms.linux;
maintainers = with stdenv.lib.maintainers; [ sternenseemann ]; maintainers = with maintainers; [ sternenseemann ] ++ gnome3.maintainers;
}; };
} }