tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
repgrep: 0.14.3 -> 0.15.0
arthsmn
2 years ago
68dcd5fe
e4c637d0
+10
-4
1 changed file
expand all
collapse all
unified
split
pkgs
tools
text
repgrep
default.nix
+10
-4
pkgs/tools/text/repgrep/default.nix
···
1
1
{ lib
2
2
+
, stdenv
2
3
, rustPlatform
3
4
, fetchFromGitHub
4
5
, asciidoctor
···
9
10
10
11
rustPlatform.buildRustPackage rec {
11
12
pname = "repgrep";
12
12
-
version = "0.14.3";
13
13
+
version = "0.15.0";
13
14
14
15
src = fetchFromGitHub {
15
16
owner = "acheronfail";
16
17
repo = "repgrep";
17
18
rev = version;
18
18
-
hash = "sha256-33b0dZJY/lnVJGMfAg/faD6PPJIFZsvMZOmKAqCZw8k=";
19
19
+
hash = "sha256-6ba7EJUts0Ni9EA3ENlK+a2FaPo7JohtCyqwR9DdL1E=";
19
20
};
20
21
21
21
-
cargoHash = "sha256-UMMTdWJ0/M8lN4abTJEVUGtoNp/g49DyW+OASg3TKfg=";
22
22
+
cargoHash = "sha256-XEjKTZ3qaiLWbm2wF+V97u9tGXDq/oTm249ubUE9n94=";
22
23
23
24
nativeBuildInputs = [
24
25
asciidoctor
···
32
33
33
34
pushd "$(dirname "$(find -path '**/repgrep-stamp' | head -n 1)")"
34
35
installManPage rgr.1
35
35
-
installShellCompletion rgr.{bash,fish} _rgr
36
36
popd
37
37
+
'' + lib.optionalString (stdenv.hostPlatform.canExecute stdenv.buildPlatform) ''
38
38
+
# As it can be seen here: https://github.com/acheronfail/repgrep/blob/0.15.0/.github/workflows/release.yml#L206, the completions are just the same as ripgrep
39
39
+
installShellCompletion --cmd rgr \
40
40
+
--bash <(${lib.getExe ripgrep} --generate complete-bash | sed 's/-c rg/-c rgr/') \
41
41
+
--zsh <(${lib.getExe ripgrep} --generate complete-zsh | sed 's/-c rg/-c rgr/') \
42
42
+
--fish <(${lib.getExe ripgrep} --generate complete-fish | sed 's/-c rg/-c rgr/')
37
43
'';
38
44
39
45
meta = with lib; {