summary refs log tree commit diff
path: root/pkgs/tools/misc/rargs/default.nix
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-08-23 02:00:50 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-08-23 02:00:50 +0200
commit91104b5417275b780f6947b46a5c1bcc0d99f10b (patch)
treef9530394ba9869c49b30171bb6006f04ba43abf8 /pkgs/tools/misc/rargs/default.nix
parent4cf394ea3f173946363c40439b03ebcd92eb2bb4 (diff)
parentddfa22167019726c015a5638e815d028031162e8 (diff)
downloadnixpkgs-91104b5417275b780f6947b46a5c1bcc0d99f10b.tar
nixpkgs-91104b5417275b780f6947b46a5c1bcc0d99f10b.tar.gz
nixpkgs-91104b5417275b780f6947b46a5c1bcc0d99f10b.tar.bz2
nixpkgs-91104b5417275b780f6947b46a5c1bcc0d99f10b.tar.lz
nixpkgs-91104b5417275b780f6947b46a5c1bcc0d99f10b.tar.xz
nixpkgs-91104b5417275b780f6947b46a5c1bcc0d99f10b.tar.zst
nixpkgs-91104b5417275b780f6947b46a5c1bcc0d99f10b.zip
Merge branch 'master' into staging-next
Diffstat (limited to 'pkgs/tools/misc/rargs/default.nix')
-rw-r--r--pkgs/tools/misc/rargs/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/misc/rargs/default.nix b/pkgs/tools/misc/rargs/default.nix
new file mode 100644
index 00000000000..6ebbeb39c6e
--- /dev/null
+++ b/pkgs/tools/misc/rargs/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, rustPlatform, fetchFromGitHub }:
+
+rustPlatform.buildRustPackage rec {
+  pname   = "rargs";
+  version = "0.3.0";
+
+  src = fetchFromGitHub {
+    owner  = "lotabout";
+    repo   = pname;
+    rev    = "v${version}";
+    sha256 = "188gj05rbivci1z4z29vwdwxlj2w01v5i4avwrxjnj1dd6mmlbxd";
+  };
+
+  cargoSha256 = "0qzkhx0n28f5wy4fral3adn499q3f10q71cd544s4ghqwqn4khc9";
+
+  doCheck=false;  # `rargs`'s test depends on the deprecated `assert_cli` crate, which in turn is not in Nixpkgs
+
+  meta = with stdenv.lib; {
+    description = "xargs + awk with pattern matching support";
+    homepage    = "https://github.com/lolabout/rargs";
+    license     = with licenses; [ mit ];
+    maintainers = with maintainers; [ pblkt ]; 
+  };
+}