summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-01-07 23:15:06 +0100
committerlassulus <lassulus@lassul.us>2021-01-07 23:15:06 +0100
commitfaefe4c3c83ab24fcdd86cdf11f634f7390de22c (patch)
tree75b2820c9d742b48addec4dc45e2644a6cbcacab /krebs
parent341a751ea26b33ac6c8b7f661cb9d2bf8e6f21d3 (diff)
parent2aab7aea07d469f60fdfb662b75f707dc70c86a8 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'krebs')
-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"
+ ];
+}