about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/sd/default.nix
blob: 6a279b834661e69365d8daaa091b5cafb08759c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchFromGitHub, rustPlatform
}:

rustPlatform.buildRustPackage rec {
  pname = "sd";
  version = "0.5.0";

  src = fetchFromGitHub {
    owner = "chmln";
    repo = pname;
    rev = "sd-${version}";
    sha256 = "1y44qizciir75d1srwm1mlskhflab2b6153d19vblw410in82f5d";
  };

  cargoSha256 = "1gls68lw8a2c3gsav70l2wasrgav68q5w1nf50jsrbqq9kb4i7nb";

  meta = with stdenv.lib; {
    description = "Intuitive find & replace CLI (sed alternative)";
    homepage = https://github.com/chmln/sd;
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = [ maintainers.amar1729 ];
  };
}