tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
libsecret: add updateScript
Jan Tojnar
8 years ago
a218d431
fd692bbc
+10
-3
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
libsecret
default.nix
+10
-3
pkgs/development/libraries/libsecret/default.nix
···
1
1
{ stdenv, fetchurl, glib, pkgconfig, intltool, libxslt, docbook_xsl, gtk-doc
2
2
-
, libgcrypt, gobjectIntrospection, vala_0_38 }:
2
2
+
, libgcrypt, gobjectIntrospection, vala_0_38, gnome3 }:
3
3
let
4
4
+
pname = "libsecret";
4
5
version = "0.18.5";
5
6
in
6
7
stdenv.mkDerivation rec {
7
7
-
name = "libsecret-${version}";
8
8
+
name = "${pname}-${version}";
8
9
9
10
src = fetchurl {
10
10
-
url = "mirror://gnome/sources/libsecret/0.18/${name}.tar.xz";
11
11
+
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
11
12
sha256 = "1cychxc3ff8fp857iikw0n2s13s2mhw2dn1mr632f7w3sn6vvrww";
12
13
};
13
14
···
19
20
nativeBuildInputs = [ pkgconfig intltool libxslt docbook_xsl ];
20
21
buildInputs = [ libgcrypt gobjectIntrospection vala_0_38 ];
21
22
# optional: build docs with gtk-doc? (probably needs a flag as well)
23
23
+
24
24
+
passthru = {
25
25
+
updateScript = gnome3.updateScript {
26
26
+
packageName = pname;
27
27
+
};
28
28
+
};
22
29
23
30
meta = {
24
31
description = "A library for storing and retrieving passwords and other secrets";