Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, buildPackages }: 2 3stdenv.mkDerivation rec { 4 pname = "mawk"; 5 version = "1.3.4-20230203"; 6 7 src = fetchurl { 8 urls = [ 9 "ftp://ftp.invisible-island.net/mawk/mawk-${version}.tgz" 10 "https://invisible-mirror.net/archives/mawk/mawk-${version}.tgz" 11 ]; 12 sha256 = "sha256-bbejKsecURB60xpAfU+SxrhC3eL2inUztOe3sD6JAL4="; 13 }; 14 15 depsBuildBuild = [ buildPackages.stdenv.cc ]; 16 17 meta = with lib; { 18 description = "Interpreter for the AWK Programming Language"; 19 homepage = "https://invisible-island.net/mawk/mawk.html"; 20 license = licenses.gpl2; 21 maintainers = with maintainers; [ ehmry ]; 22 platforms = with platforms; unix; 23 }; 24}