sd: 0.7.6 -> 1.0.0

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