tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
bashrun2: init at 0.2.6
Dopplerian
1 year ago
6118a3d7
54f369fa
+102
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
ba
bashrun2
package.nix
remote-permissions.patch
+90
pkgs/by-name/ba/bashrun2/package.nix
···
1
1
+
{
2
2
+
fetchFromGitHub,
3
3
+
lib,
4
4
+
stdenv,
5
5
+
makeWrapper,
6
6
+
xorg,
7
7
+
ncurses,
8
8
+
coreutils,
9
9
+
bashInteractive,
10
10
+
gnused,
11
11
+
gnugrep,
12
12
+
glibc,
13
13
+
xterm,
14
14
+
util-linux,
15
15
+
}:
16
16
+
17
17
+
stdenv.mkDerivation rec {
18
18
+
pname = "bashrun2";
19
19
+
version = "0.2.6";
20
20
+
21
21
+
src = fetchFromGitHub {
22
22
+
owner = "hbekel";
23
23
+
repo = "bashrun2";
24
24
+
tag = "v${version}";
25
25
+
hash = "sha256-U2ntplhyv8KAkaMd2D6wRsUIYkhJzxdgHo2xsbNRfqM=";
26
26
+
};
27
27
+
28
28
+
nativeBuildInputs = [
29
29
+
makeWrapper
30
30
+
];
31
31
+
32
32
+
buildInputs = [
33
33
+
xorg.libX11
34
34
+
];
35
35
+
36
36
+
patches = [
37
37
+
./remote-permissions.patch
38
38
+
];
39
39
+
40
40
+
postPatch = ''
41
41
+
substituteInPlace \
42
42
+
man/bashrun2.1 \
43
43
+
--replace-fail '/usr/bin/brwctl' "$out/bin/brwctl"
44
44
+
45
45
+
substituteInPlace \
46
46
+
src/bindings \
47
47
+
src/registry \
48
48
+
src/utils \
49
49
+
src/bashrun2 \
50
50
+
src/frontend \
51
51
+
src/remote \
52
52
+
src/plugin \
53
53
+
src/engine \
54
54
+
src/bookmarks \
55
55
+
--replace-fail '/bin/rm' '${coreutils}/bin/rm'
56
56
+
57
57
+
substituteInPlace \
58
58
+
src/bashrun2 \
59
59
+
--replace-fail '#!/usr/bin/env bash' '#!${lib.getExe bashInteractive}'
60
60
+
61
61
+
substituteInPlace \
62
62
+
src/remote \
63
63
+
--replace-fail '/bin/cp' '${coreutils}/bin/cp'
64
64
+
'';
65
65
+
66
66
+
postFixup = ''
67
67
+
wrapProgram $out/bin/bashrun2 \
68
68
+
--prefix PATH : "$out/bin:${
69
69
+
lib.makeBinPath [
70
70
+
ncurses
71
71
+
coreutils
72
72
+
gnused
73
73
+
gnugrep
74
74
+
glibc
75
75
+
bashInteractive
76
76
+
xterm
77
77
+
util-linux
78
78
+
]
79
79
+
}" \
80
80
+
--prefix XDG_CONFIG_DIRS : "$out/etc/xdg"
81
81
+
'';
82
82
+
83
83
+
meta = {
84
84
+
maintainers = with lib.maintainers; [ dopplerian ];
85
85
+
mainProgram = "bashrun2";
86
86
+
homepage = "http://henning-liebenau.de/bashrun2/";
87
87
+
license = lib.licenses.gpl2Plus;
88
88
+
description = "Application launcher based on a modified bash session in a small terminal window";
89
89
+
};
90
90
+
}
+12
pkgs/by-name/ba/bashrun2/remote-permissions.patch
···
1
1
+
diff --git a/src/remote b/src/remote
2
2
+
index 07674ca..07a6b25 100644
3
3
+
--- a/src/remote
4
4
+
+++ b/src/remote
5
5
+
@@ -97,6 +97,7 @@ function §remote.interface.create {
6
6
+
local bookmarks="$bashrun_cache_home/remote-bookmarks.bash"
7
7
+
8
8
+
/bin/cp "$bashrun_site/interface" "$interface"
9
9
+
+ chmod +w "$interface"
10
10
+
printf '%s\n' "$bashrun_remote_interface" >> "$interface"
11
11
+
12
12
+
printf '%s\n' "source $bindings" >> "$interface"