10 stdenv.mkDerivation (finalAttrs: {
14 src = fetchFromGitHub {
17 rev = finalAttrs.version;
18 hash = "sha256-LA7fdbMP3aKJ1QljoKWizqVg3ys3hd8tGaRsQnIO+Hc=";
21 depsBuildBuild = [ buildPackages.stdenv.cc ];
34 "CC=${stdenv.cc.targetPrefix}cc"
35 "HOSTCC=${if stdenv.buildPlatform.isDarwin then "clang" else "cc"}"
48 homepage = "https://awk.dev";
49 description = "One, true implementation of AWK";
51 This is the version of awk described in "The AWK Programming Language",
52 Second Edition, by Al Aho, Brian Kernighan, and Peter Weinberger
53 (Addison-Wesley, 2023, ISBN 0-13-826972-6).
55 changelog = "https://github.com/onetrueawk/awk/blob/${finalAttrs.src.rev}/ChangeLog";
56 license = lib.licenses.mit;
58 maintainers = with lib.maintainers; [
62 platforms = lib.platforms.all;