9 rustPlatform.buildRustPackage rec {
13 src = fetchFromGitHub {
17 hash = "sha256-hC4VKEgrAVuqOX7b24XhtrxrnJW5kmlX4E6QbY9H8OA=";
20 cargoHash = "sha256-IhCuWCaSU7c7Tot4uvxE7oabY69wDLstuBN35OzkQcU=";
22 nativeBuildInputs = [ installShellFiles ];
24 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
27 installManPage gen/sd.1
29 installShellCompletion gen/completions/sd.{bash,fish}
30 installShellCompletion --zsh gen/completions/_sd
34 description = "Intuitive find & replace CLI (sed alternative)";
36 homepage = "https://github.com/chmln/sd";
37 license = licenses.mit;
38 maintainers = with maintainers; [ amar1729 Br1ght0ne ];