summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-01-07 21:09:12 +0100
committertv <tv@krebsco.de>2021-01-07 21:12:38 +0100
commit2aab7aea07d469f60fdfb662b75f707dc70c86a8 (patch)
tree84eb781338801b39503660c8766f538f0bd84df3
parent120eadb80a38e063ed9fc54af0e8b23974e9fe43 (diff)
urix: init
-rw-r--r--krebs/5pkgs/simple/urix.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/urix.nix b/krebs/5pkgs/simple/urix.nix
new file mode 100644
index 000000000..c0db8c975
--- /dev/null
+++ b/krebs/5pkgs/simple/urix.nix
@@ -0,0 +1,15 @@
+let lib = import <stockholm/lib>; in
+{ pkgs }:
+
+# urix - URI eXtractor
+# Extract all the URIs from standard input and write them to standard output!
+# usage: urix < SOMEFILE
+
+pkgs.execBin "urix" {
+ filename = "${pkgs.gnugrep}/bin/grep";
+ argv = [
+ "urix"
+ "-Eo"
+ "\\b${lib.uri.posix-extended-regex}\\b"
+ ];
+}