-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
56 lines (49 loc) · 822 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{ lib
, stdenv
, makeWrapper
# for fzlaunch executable and entry_manager.py
, bash
, fzf
, python310
, coreutils
, gtk3
# for builtin modules
, findutils
, poppler_utils
, less
, lesspipe
}:
let
python-packages = python: with python; [
pyxdg
recoll
];
fzl_python = python310.withPackages python-packages;
in
stdenv.mkDerivation rec {
pname = "fzlaunch";
version = "main";
buildInputs = [
bash
fzf
fzl_python
coreutils
gtk3
findutils
poppler_utils
less
lesspipe
];
nativeBuildInputs = [
makeWrapper
];
src = ./.;
installPhase = ''
mkdir -p $out
cp -r $src $out/bin
chmod +w $out/bin
wrapProgram $out/bin/fzlaunch \
--set FZLAUNCH_EXTRA_PATH ${lib.makeBinPath buildInputs} \
--prefix PATH : ${gtk3}/bin
'';
}