about summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-11-10 07:47:08 -0500
committerGitHub <noreply@github.com>2023-11-10 07:47:08 -0500
commit189af6609c4c7cdf97c729ab6477e1d35d035c8c (patch)
tree1c6ccc623a1585ea493e8e52b31c043c16ed5486 /pkgs/tools/text
parent25ee8ba3f697fb567569f74c18e08561e07fd7d5 (diff)
parentef42b4bd2f1bfac9a3e95d2c0a3879163857490a (diff)
downloadnixlib-189af6609c4c7cdf97c729ab6477e1d35d035c8c.tar
nixlib-189af6609c4c7cdf97c729ab6477e1d35d035c8c.tar.gz
nixlib-189af6609c4c7cdf97c729ab6477e1d35d035c8c.tar.bz2
nixlib-189af6609c4c7cdf97c729ab6477e1d35d035c8c.tar.lz
nixlib-189af6609c4c7cdf97c729ab6477e1d35d035c8c.tar.xz
nixlib-189af6609c4c7cdf97c729ab6477e1d35d035c8c.tar.zst
nixlib-189af6609c4c7cdf97c729ab6477e1d35d035c8c.zip
Merge pull request #266185 from aaronjheng/sd
sd: 0.7.6 -> 1.0.0
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/sd/default.nix21
1 files changed, 13 insertions, 8 deletions
diff --git a/pkgs/tools/text/sd/default.nix b/pkgs/tools/text/sd/default.nix
index 009150062db2..8dc160cd014d 100644
--- a/pkgs/tools/text/sd/default.nix
+++ b/pkgs/tools/text/sd/default.nix
@@ -1,28 +1,33 @@
-{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security
+{ lib
+, stdenv
+, fetchFromGitHub
+, rustPlatform
+, installShellFiles
+, Security
 }:
 
 rustPlatform.buildRustPackage rec {
   pname = "sd";
-  version = "0.7.6";
+  version = "1.0.0";
 
   src = fetchFromGitHub {
     owner = "chmln";
     repo = pname;
     rev = "v${version}";
-    sha256 = "0c5bsqs6c55x4j640vhzlmbiylhp5agr7lx0jrwcjazfyvxihc01";
+    hash = "sha256-hC4VKEgrAVuqOX7b24XhtrxrnJW5kmlX4E6QbY9H8OA=";
   };
 
-  cargoSha256 = "1iwgy9zzdxay6hb9pz47jchy03jrsy5csxijlq4i228qhqnvq1lr";
+  cargoHash = "sha256-IhCuWCaSU7c7Tot4uvxE7oabY69wDLstuBN35OzkQcU=";
 
   nativeBuildInputs = [ installShellFiles ];
 
   buildInputs = lib.optionals stdenv.isDarwin [ Security ];
 
-  preFixup = ''
-    installManPage $releaseDir/build/sd-*/out/sd.1
+  postInstall = ''
+    installManPage gen/sd.1
 
-    installShellCompletion $releaseDir/build/sd-*/out/sd.{bash,fish}
-    installShellCompletion --zsh $releaseDir/build/sd-*/out/_sd
+    installShellCompletion gen/completions/sd.{bash,fish}
+    installShellCompletion --zsh gen/completions/_sd
   '';
 
   meta = with lib; {