3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/amber/default.nix

28 lines
683 B
Nix
Raw Normal View History

2019-05-01 22:30:13 +01:00
{ stdenv, fetchFromGitHub, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "amber";
2019-12-01 20:05:04 +00:00
version = "0.5.3";
2019-05-01 22:30:13 +01:00
src = fetchFromGitHub {
owner = "dalance";
repo = pname;
rev = "v${version}";
2019-12-01 20:05:04 +00:00
sha256 = "0k70rk19hwdlhhqm91x12xcb8r09kzpijs0xwhplrwdh86qfxymx";
2019-05-01 22:30:13 +01:00
};
2019-12-01 20:05:04 +00:00
cargoSha256 = "0hh3sgcdcp0llgf3i3dysrr3vry3fv3fzzf44ad1953d5mnyhvap";
2019-05-01 22:30:13 +01:00
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
meta = with stdenv.lib; {
description = "A code search-and-replace tool";
homepage = https://github.com/dalance/amber;
license = with licenses; [ mit ];
maintainers = [ maintainers.bdesham ];
platforms = platforms.all;
};
}