diff options
author | lassulus <lassulus@lassul.us> | 2021-01-07 23:15:06 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-01-07 23:15:06 +0100 |
commit | faefe4c3c83ab24fcdd86cdf11f634f7390de22c (patch) | |
tree | 75b2820c9d742b48addec4dc45e2644a6cbcacab /krebs/5pkgs/simple | |
parent | 341a751ea26b33ac6c8b7f661cb9d2bf8e6f21d3 (diff) | |
parent | 2aab7aea07d469f60fdfb662b75f707dc70c86a8 (diff) |
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'krebs/5pkgs/simple')
-rw-r--r-- | krebs/5pkgs/simple/urix.nix | 15 |
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" + ]; +} |