Merge pull request #337017 from museoa/upload-mawk

mawk: 1.3.4-20240622 -> 1.3.4-20240819
This commit is contained in:
Jörg Thalheim
2024-08-25 16:09:40 +02:00
committed by GitHub
3 changed files with 44 additions and 27 deletions
+44
View File
@@ -0,0 +1,44 @@
{
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;
};
})
-25
View File
@@ -1,25 +0,0 @@
{ 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;
};
}
-2
View File
@@ -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 { };