From 8bf2a0971e689b51cbd241962599bd8994682222 Mon Sep 17 00:00:00 2001 From: Maciek Starzyk Date: Fri, 29 Dec 2017 21:55:42 +0100 Subject: [PATCH] miller: init at 5.2.2 --- lib/maintainers.nix | 1 + pkgs/tools/text/miller/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 27 insertions(+) create mode 100644 pkgs/tools/text/miller/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 816917397fc5..faa8bf0f9055 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -451,6 +451,7 @@ mrVanDalo = "Ingolf Wanger "; msackman = "Matthew Sackman "; mschristiansen = "Mikkel Christiansen "; + mstarzyk = "Maciek Starzyk "; msteen = "Matthijs Steen "; mt-caret = "Masayuki Takeda "; mtreskin = "Max Treskin "; diff --git a/pkgs/tools/text/miller/default.nix b/pkgs/tools/text/miller/default.nix new file mode 100644 index 000000000000..7e0d2b4a14c2 --- /dev/null +++ b/pkgs/tools/text/miller/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub, autoreconfHook, flex, libtool }: + +stdenv.mkDerivation rec { + name = "miller-${version}"; + + version = "5.2.2"; + + src = fetchFromGitHub { + owner = "johnkerl"; + repo = "miller"; + rev = "v${version}"; + sha256 = "1i5lyknsf4vif601l070xh5sz8jy2h359jrb0kc0s0pl8lypxs4i"; + }; + + nativeBuildInputs = [ autoreconfHook flex libtool ]; + + meta = with stdenv.lib; { + description = "Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON."; + homepage = "http://johnkerl.org/miller/"; + license = licenses.bsd2; + maintainers = with maintainers; [ mstarzyk ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ef0780d69af1..993866172a23 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3646,6 +3646,8 @@ with pkgs; nomad = callPackage ../applications/networking/cluster/nomad { }; + miller = callPackage ../tools/text/miller { }; + milu = callPackage ../applications/misc/milu { }; mpack = callPackage ../tools/networking/mpack { };