Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPackages, 4 directoryListingUpdater, 5 fetchurl, 6 stdenv, 7 testers, 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "mawk"; 12 version = "1.3.4-20240819"; 13 14 src = fetchurl { 15 urls = [ 16 "https://invisible-mirror.net/archives/mawk/mawk-${finalAttrs.version}.tgz" 17 "ftp://ftp.invisible-island.net/mawk/mawk-${finalAttrs.version}.tgz" 18 ]; 19 hash = "sha256-bh/ejuetilwVOCMWhj/WtMbSP6t4HdWrAXf/o+6arlw="; 20 }; 21 22 depsBuildBuild = [ buildPackages.stdenv.cc ]; 23 24 passthru = { 25 tests.version = testers.testVersion { 26 package = finalAttrs.finalPackage; 27 command = "mawk -W version"; 28 }; 29 updateScript = directoryListingUpdater { 30 inherit (finalAttrs) pname version; 31 url = "https://invisible-island.net/archives/mawk/"; 32 }; 33 }; 34 35 meta = { 36 homepage = "https://invisible-island.net/mawk/mawk.html"; 37 changelog = "https://invisible-island.net/mawk/CHANGES"; 38 description = "Interpreter for the AWK Programming Language"; 39 license = lib.licenses.gpl2Only; 40 mainProgram = "mawk"; 41 maintainers = with lib.maintainers; [ ehmry ]; 42 platforms = lib.platforms.unix; 43 }; 44})