Skip to content

Commit c9d472d

Browse files
gnome-pass-search-provider: init at 1.4.0 (NixOS#323291)
2 parents da6fdc5 + 5403a68 commit c9d472d

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
python3Packages,
6+
wrapGAppsHook3,
7+
gtk3,
8+
gobject-introspection,
9+
}:
10+
11+
stdenv.mkDerivation (finalAttrs: {
12+
pname = "gnome-pass-search-provider";
13+
version = "1.4.0";
14+
15+
src = fetchFromGitHub {
16+
owner = "jle64";
17+
repo = "gnome-pass-search-provider";
18+
rev = finalAttrs.version;
19+
hash = "sha256-PDR8fbDoT8IkHiTopQp0zd4DQg7JlacA6NdKYKYmrWw=";
20+
};
21+
22+
nativeBuildInputs = [
23+
python3Packages.wrapPython
24+
wrapGAppsHook3
25+
];
26+
27+
propagatedBuildInputs = [
28+
python3Packages.dbus-python
29+
python3Packages.pygobject3
30+
python3Packages.fuzzywuzzy
31+
python3Packages.levenshtein
32+
33+
gtk3
34+
gobject-introspection
35+
];
36+
37+
env = {
38+
LIBDIR = placeholder "out" + "/lib";
39+
DATADIR = placeholder "out" + "/share";
40+
};
41+
42+
postPatch = ''
43+
substituteInPlace conf/org.gnome.Pass.SearchProvider.service.{dbus,systemd} \
44+
--replace-fail "/usr/lib" "$LIBDIR"
45+
'';
46+
47+
installPhase = ''
48+
runHook preInstall
49+
50+
bash ./install.sh
51+
52+
runHook postInstall
53+
'';
54+
55+
postFixup = ''
56+
makeWrapperArgs=( "''${gappsWrapperArgs[@]}" )
57+
wrapPythonProgramsIn "$out/lib" "$out $propagatedBuildInputs"
58+
'';
59+
60+
meta = {
61+
description = "Pass password manager search provider for gnome-shell";
62+
homepage = "https://github.com/jle64/gnome-pass-search-provider";
63+
license = lib.licenses.gpl3Plus;
64+
maintainers = with lib.maintainers; [ lelgenio ];
65+
platforms = lib.platforms.linux;
66+
};
67+
})

0 commit comments

Comments
 (0)