mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
libhttpseverywhere: add updateScript
This commit is contained in:
parent
8972bc5db8
commit
990036c599
1 changed files with 19 additions and 14 deletions
|
@ -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";
|
||||
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 = stdenv.lib.licenses.lgpl3;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = with stdenv.lib.maintainers; [ sternenseemann ];
|
||||
license = licenses.lgpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ sternenseemann ] ++ gnome3.maintainers;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue