mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
libhttpseverywhere: add updateScript
This commit is contained in:
parent
8972bc5db8
commit
990036c599
@ -1,22 +1,21 @@
|
||||
{ stdenv, fetchurl, pkgconfig, meson, ninja, valadoc
|
||||
, gnome3, glib, json-glib, libarchive, libsoup, gobjectIntrospection }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
major = "0.6";
|
||||
minor = "5";
|
||||
version = "${major}.${minor}";
|
||||
|
||||
name = "libhttpseverywhere-${version}";
|
||||
let
|
||||
pname = "libhttpseverywhere";
|
||||
version = "0.6.5";
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gnome3.vala gobjectIntrospection meson ninja pkgconfig valadoc ];
|
||||
buildInputs = [ glib gnome3.libgee json-glib libsoup libarchive ];
|
||||
|
||||
mesonFlags = "-Denable_valadoc=true";
|
||||
mesonFlags = [ "-Denable_valadoc=true" ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
@ -24,11 +23,17 @@ stdenv.mkDerivation rec {
|
||||
|
||||
outputs = [ "out" "devdoc" ];
|
||||
|
||||
meta = {
|
||||
description = "library to use HTTPSEverywhere in desktop applications";
|
||||
homepage = https://git.gnome.org/browse/libhttpseverywhere;
|
||||
license = stdenv.lib.licenses.lgpl3;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = with stdenv.lib.maintainers; [ sternenseemann ];
|
||||
passthru = {
|
||||
updateScript = gnome3.updateScript {
|
||||
packageName = pname;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Library to use HTTPSEverywhere in desktop applications";
|
||||
homepage = https://git.gnome.org/browse/libhttpseverywhere;
|
||||
license = licenses.lgpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ sternenseemann ] ++ gnome3.maintainers;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user