9 stdenv.mkDerivation (finalAttrs: {
13 src = fetchFromGitHub {
17 hash = "sha256-9SxeYsTFrsJ+Cg43QjQihi2Ij0qdJvTnyGGhUHJHjuU=";
20 depsBuildBuild = [ buildPackages.stdenv.cc ];
27 outputs = [ "out" "man" ];
30 "CC=${stdenv.cc.targetPrefix}cc"
31 "HOSTCC=${if stdenv.buildPlatform.isDarwin then "clang" else "cc"}"
36 install -Dm755 a.out "$out/bin/nawk"
43 homepage = "https://awk.dev";
44 description = "The one, true implementation of AWK";
46 This is the version of awk described in "The AWK Programming Language",
47 Second Edition, by Al Aho, Brian Kernighan, and Peter Weinberger
48 (Addison-Wesley, 2023, ISBN 0-13-826972-6).
50 changelog = "https://github.com/onetrueawk/awk/blob/${finalAttrs.src.rev}/ChangeLog";
51 license = lib.licenses.mit;
53 maintainers = with lib.maintainers; [ AndersonTorres konimex ];
54 platforms = lib.platforms.all;