diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-03-23 05:31:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 05:31:31 +0100 |
commit | 85ce10e75a3ad8eb0f1d24ab9c58c703999b475e (patch) | |
tree | 7fdf712857e31f4e657d5adaad015d08e9444e68 /pkgs | |
parent | 90e5b2113534f2e43e7cdf90f72c3a3fe702d627 (diff) | |
parent | 55d462eea9a0073ab384a085c84ad24300801188 (diff) |
Merge pull request #164042 from mstarzyk/miller-6
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/text/miller/default.nix | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/pkgs/tools/text/miller/default.nix b/pkgs/tools/text/miller/default.nix index f64f195db9511..932b670c74942 100644 --- a/pkgs/tools/text/miller/default.nix +++ b/pkgs/tools/text/miller/default.nix @@ -1,22 +1,29 @@ -{ lib, stdenv, fetchFromGitHub, autoreconfHook, flex, libtool }: +{ lib, fetchFromGitHub, buildGoModule }: -stdenv.mkDerivation rec { +buildGoModule rec { pname = "miller"; - - version = "5.10.3"; + version = "6.2.0"; src = fetchFromGitHub { owner = "johnkerl"; repo = "miller"; - rev = "v${version}"; - sha256 = "sha256-Mag7bIfZNdp+sM54yKp8HdH3kWjwWRfyPBGthej2jd8="; + # NOTE: The tag v6.2.0 has still old version number, as reported by + # `mlr --version`. This is the current head of the 6.2.0 branch, with + # the correct version number. + # + # For future releases please check if we can use + # `rev = "v${version}"` again. + rev = "a6dc231eefc209eb66b50b0773542c2e63501bba"; + sha256 = "sha256-hMWcf43o1wiVjHsgH+ZDBny5vlZQkKyoJN5np4gUy4w="; }; - nativeBuildInputs = [ autoreconfHook flex libtool ]; + vendorSha256 = "sha256-2tl/twzkvWB1lnvi3fIptM77zi0lmAn7Pzoe0/lW6o4="; + + subPackages = [ "cmd/mlr" ]; meta = with lib; { - description = "Like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON"; - homepage = "http://johnkerl.org/miller/"; + description = "Like awk, sed, cut, join, and sort for data formats such as CSV, TSV, JSON, JSON Lines, and positionally-indexed"; + homepage = "https://github.com/johnkerl/miller"; license = licenses.bsd2; maintainers = with maintainers; [ mstarzyk ]; platforms = platforms.all; |