sd: 0.7.6 -> 1.0.0

+13 -8
+13 -8
pkgs/tools/text/sd/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , rustPlatform 5 + , installShellFiles 6 + , Security 2 7 }: 3 8 4 9 rustPlatform.buildRustPackage rec { 5 10 pname = "sd"; 6 - version = "0.7.6"; 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 - sha256 = "0c5bsqs6c55x4j640vhzlmbiylhp5agr7lx0jrwcjazfyvxihc01"; 17 + hash = "sha256-hC4VKEgrAVuqOX7b24XhtrxrnJW5kmlX4E6QbY9H8OA="; 13 18 }; 14 19 15 - cargoSha256 = "1iwgy9zzdxay6hb9pz47jchy03jrsy5csxijlq4i228qhqnvq1lr"; 20 + cargoHash = "sha256-IhCuWCaSU7c7Tot4uvxE7oabY69wDLstuBN35OzkQcU="; 16 21 17 22 nativeBuildInputs = [ installShellFiles ]; 18 23 19 24 buildInputs = lib.optionals stdenv.isDarwin [ Security ]; 20 25 21 - preFixup = '' 22 - installManPage $releaseDir/build/sd-*/out/sd.1 26 + postInstall = '' 27 + installManPage gen/sd.1 23 28 24 - installShellCompletion $releaseDir/build/sd-*/out/sd.{bash,fish} 25 - installShellCompletion --zsh $releaseDir/build/sd-*/out/_sd 29 + installShellCompletion gen/completions/sd.{bash,fish} 30 + installShellCompletion --zsh gen/completions/_sd 26 31 ''; 27 32 28 33 meta = with lib; {