diff --git a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml index fc7cb28ffdfd..78606c6a9091 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml @@ -826,6 +826,16 @@ true. + + + The miller package has been upgraded from + 5.10.3 to + 6.2.0. + See + What’s + new in Miller 6. + + MultiMC has been replaced with the fork PolyMC due to upstream diff --git a/nixos/doc/manual/release-notes/rl-2205.section.md b/nixos/doc/manual/release-notes/rl-2205.section.md index 2ff5865b7355..acb817d31a86 100644 --- a/nixos/doc/manual/release-notes/rl-2205.section.md +++ b/nixos/doc/manual/release-notes/rl-2205.section.md @@ -324,6 +324,8 @@ In addition to numerous new and upgraded packages, this release has the followin - The options `networking.interfaces..ipv4.routes` and `networking.interfaces..ipv6.routes` are no longer ignored when using networkd instead of the default scripted network backend by setting `networking.useNetworkd` to `true`. +- The `miller` package has been upgraded from 5.10.3 to [6.2.0](https://github.com/johnkerl/miller/releases/tag/v6.2.0). See [What's new in Miller 6](https://miller.readthedocs.io/en/latest/new-in-miller-6). + - MultiMC has been replaced with the fork PolyMC due to upstream developers being hostile to 3rd party package maintainers. PolyMC removes all MultiMC branding and is aimed at providing proper 3rd party packages like the one contained in Nixpkgs. This change affects the data folder where game instances and other save and configuration files are stored. Users with existing installations should rename `~/.local/share/multimc` to `~/.local/share/polymc`. The main config file's path has also moved from `~/.local/share/multimc/multimc.cfg` to `~/.local/share/polymc/polymc.cfg`. - `systemd-nspawn@.service` settings have been reverted to the default systemd behaviour. User namespaces are now activated by default. If you want to keep running nspawn containers without user namespaces you need to set `systemd.nspawn..execConfig.PrivateUsers = false` diff --git a/pkgs/tools/text/miller/default.nix b/pkgs/tools/text/miller/default.nix index f64f195db951..932b670c7494 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;