about summary refs log tree commit diff
path: root/pkgs/tools/text/hck
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2021-08-17 15:27:02 -0400
committerfigsoda <figsoda@pm.me>2021-08-17 15:27:02 -0400
commit49daefd702017091e2cfcf4ee105ed7aa017d6e8 (patch)
tree97fca303159594d13c1d0c7e9ad8a6598ea22bb6 /pkgs/tools/text/hck
parent06a41b9c510e286ec4b231f9026aeec696610b1e (diff)
hck: init at 0.5.4
Diffstat (limited to 'pkgs/tools/text/hck')
-rw-r--r--pkgs/tools/text/hck/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/tools/text/hck/default.nix b/pkgs/tools/text/hck/default.nix
new file mode 100644
index 0000000000000..f10c01ca2fd61
--- /dev/null
+++ b/pkgs/tools/text/hck/default.nix
@@ -0,0 +1,23 @@
+{ fetchFromGitHub, lib, rustPlatform }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "hck";
+  version = "0.5.4";
+
+  src = fetchFromGitHub {
+    owner = "sstadick";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1zdzi98qywlwk5bp47963vya2p2ahrbjkc9h63lmb05wlas9s78y";
+  };
+
+  cargoSha256 = "0lvd5xpgh2vq2lszzb0fs6ha2vb419a5w0hlkq3287vq3ya3p4qg";
+
+  meta = with lib; {
+    description = "A close to drop in replacement for cut that can use a regex delimiter instead of a fixed string";
+    homepage = "https://github.com/sstadick/hck";
+    changelog = "https://github.com/sstadick/hck/blob/v${version}/CHANGELOG.md";
+    license = with licenses; [ mit /* or */ unlicense ];
+    maintainers = with maintainers; [ figsoda ];
+  };
+}