File tree Expand file tree Collapse file tree 1 file changed +67
-0
lines changed
pkgs/by-name/gn/gnome-pass-search-provider Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments