tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
sd: 0.7.6 -> 1.0.0
Aaron Jheng
2 years ago
ef42b4bd
8517efc4
+13
-8
1 changed file
expand all
collapse all
unified
split
pkgs
tools
text
sd
default.nix
+13
-8
pkgs/tools/text/sd/default.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchFromGitHub
4
4
+
, rustPlatform
5
5
+
, installShellFiles
6
6
+
, Security
2
7
}:
3
8
4
9
rustPlatform.buildRustPackage rec {
5
10
pname = "sd";
6
6
-
version = "0.7.6";
11
11
+
version = "1.0.0";
7
12
8
13
src = fetchFromGitHub {
9
14
owner = "chmln";
10
15
repo = pname;
11
16
rev = "v${version}";
12
12
-
sha256 = "0c5bsqs6c55x4j640vhzlmbiylhp5agr7lx0jrwcjazfyvxihc01";
17
17
+
hash = "sha256-hC4VKEgrAVuqOX7b24XhtrxrnJW5kmlX4E6QbY9H8OA=";
13
18
};
14
19
15
15
-
cargoSha256 = "1iwgy9zzdxay6hb9pz47jchy03jrsy5csxijlq4i228qhqnvq1lr";
20
20
+
cargoHash = "sha256-IhCuWCaSU7c7Tot4uvxE7oabY69wDLstuBN35OzkQcU=";
16
21
17
22
nativeBuildInputs = [ installShellFiles ];
18
23
19
24
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
20
25
21
21
-
preFixup = ''
22
22
-
installManPage $releaseDir/build/sd-*/out/sd.1
26
26
+
postInstall = ''
27
27
+
installManPage gen/sd.1
23
28
24
24
-
installShellCompletion $releaseDir/build/sd-*/out/sd.{bash,fish}
25
25
-
installShellCompletion --zsh $releaseDir/build/sd-*/out/_sd
29
29
+
installShellCompletion gen/completions/sd.{bash,fish}
30
30
+
installShellCompletion --zsh gen/completions/_sd
26
31
'';
27
32
28
33
meta = with lib; {