summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorBenjamin Esham <benjamin@esham.io>2019-05-01 14:30:13 -0700
committerMario Rodas <marsam@users.noreply.github.com>2019-05-05 17:36:34 -0500
commit152c051ac06f558aa5b7683dd70aba80e8ce97a0 (patch)
treeae2c45f91a608cf7e04569896d05613549581fe2 /pkgs/tools/text
parentca8b5baa8091186b155801edf4584f6be7757b8b (diff)
amber: init at 0.5.2
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/amber/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/text/amber/default.nix b/pkgs/tools/text/amber/default.nix
new file mode 100644
index 000000000000..c8f380739a6a
--- /dev/null
+++ b/pkgs/tools/text/amber/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchFromGitHub, rustPlatform
+, Security
+}:
+
+rustPlatform.buildRustPackage rec {
+ pname = "amber";
+ version = "0.5.2";
+
+ src = fetchFromGitHub {
+ owner = "dalance";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "0jwrkd6qhxj2mqsfmhk687k15f7gf36gjyxnynj0yh8db2db6mjc";
+ };
+
+ cargoSha256 = "0iv8zvglwaihcc89dk9kkhchbj1g3v8wq8jcbrgcbclcsyymmplc";
+
+ 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;
+ };
+}