nixpkgs/pkgs/tools/text/mawk/default.nix
Bjørn Forsman 112dc82132 mawk: 1.3.4-20230203 -> 1.3.4-20230525
Upgrade to fix random segfault.

Before:

  $ nix-build -A mawk && for i in $(seq 10); do printf "i=$i "; echo PASS | ./result/bin/mawk -W interactive '{ print }'; done
  /nix/store/zyxgmjyb8ii282lx8g64dhd8y9k3rzd6-mawk-1.3.4-20230203
  i=1 PASS
  i=2 PASS
  i=3 Segmentation fault (core dumped)
  i=4 Segmentation fault (core dumped)
  i=5 Segmentation fault (core dumped)
  i=6 Segmentation fault (core dumped)
  i=7 Segmentation fault (core dumped)
  i=8 PASS
  i=9 Segmentation fault (core dumped)
  i=10 PASS

After:

  $ nix-build -A mawk && for i in $(seq 10); do printf "i=$i "; echo PASS | ./result/bin/mawk -W interactive '{ print }'; done
  /nix/store/dn4mcifn50a6z3g482by0d988zwms0yq-mawk-1.3.4-20230525
  i=1 PASS
  i=2 PASS
  i=3 PASS
  i=4 PASS
  i=5 PASS
  i=6 PASS
  i=7 PASS
  i=8 PASS
  i=9 PASS
  i=10 PASS

Upstream changelog: https://invisible-island.net/mawk/CHANGES
2023-07-13 12:16:49 +01:00

25 lines
685 B
Nix

{ lib, stdenv, fetchurl, buildPackages }:
stdenv.mkDerivation rec {
pname = "mawk";
version = "1.3.4-20230525";
src = fetchurl {
urls = [
"ftp://ftp.invisible-island.net/mawk/mawk-${version}.tgz"
"https://invisible-mirror.net/archives/mawk/mawk-${version}.tgz"
];
sha256 = "sha256-VjnRS7kSQ3Oz1/lX0rklrYrZZW1GISw/I9vKgQzJJp8=";
};
depsBuildBuild = [ buildPackages.stdenv.cc ];
meta = with lib; {
description = "Interpreter for the AWK Programming Language";
homepage = "https://invisible-island.net/mawk/mawk.html";
license = licenses.gpl2;
maintainers = with maintainers; [ ehmry ];
platforms = with platforms; unix;
};
}