Unverified Commit 73229d90 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

Merge pull request #337017 from museoa/upload-mawk

mawk: 1.3.4-20240622 -> 1.3.4-20240819
parents a082bd50 bca63da5
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{
  lib,
  buildPackages,
  directoryListingUpdater,
  fetchurl,
  stdenv,
  testers,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "mawk";
  version = "1.3.4-20240819";

  src = fetchurl {
    urls = [
      "https://invisible-mirror.net/archives/mawk/mawk-${finalAttrs.version}.tgz"
      "ftp://ftp.invisible-island.net/mawk/mawk-${finalAttrs.version}.tgz"
    ];
    hash = "sha256-bh/ejuetilwVOCMWhj/WtMbSP6t4HdWrAXf/o+6arlw=";
  };

  depsBuildBuild = [ buildPackages.stdenv.cc ];

  passthru = {
    tests.version = testers.testVersion {
      package = finalAttrs.finalPackage;
      command = "mawk -W version";
    };
    updateScript = directoryListingUpdater {
      inherit (finalAttrs) pname version;
      url = "https://invisible-island.net/archives/mawk/";
    };
  };

  meta = {
    homepage = "https://invisible-island.net/mawk/mawk.html";
    changelog = "https://invisible-island.net/mawk/CHANGES";
    description = "Interpreter for the AWK Programming Language";
    license = lib.licenses.gpl2Only;
    mainProgram = "mawk";
    maintainers = with lib.maintainers; [ ehmry ];
    platforms = lib.platforms.unix;
  };
})

pkgs/tools/text/mawk/default.nix

deleted100644 → 0
+0 −25
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, buildPackages }:

stdenv.mkDerivation rec {
  pname = "mawk";
  version = "1.3.4-20240622";

  src = fetchurl {
    urls = [
      "ftp://ftp.invisible-island.net/mawk/mawk-${version}.tgz"
      "https://invisible-mirror.net/archives/mawk/mawk-${version}.tgz"
    ];
    sha256 = "sha256-TpF+h6ep+692mVeEpLC13A3ZVLl30JgwMPePagexp2U=";
  };

  depsBuildBuild = [ buildPackages.stdenv.cc ];

  meta = with lib; {
    description = "Interpreter for the AWK Programming Language";
    mainProgram = "mawk";
    homepage = "https://invisible-island.net/mawk/mawk.html";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ ehmry ];
    platforms = with platforms; unix;
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -10211,8 +10211,6 @@ with pkgs;
  mars-mips = callPackage ../development/tools/mars-mips { };
  mawk = callPackage ../tools/text/mawk { };
  mb2md = callPackage ../tools/text/mb2md { };
  mbuffer = callPackage ../tools/misc/mbuffer { };