blob: 249c58deaba85e5f6c71a077e9fbecc0054ddc39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
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"
"https://invisible-island.net/archives/mawk/mawk-${finalAttrs.version}.tgz"
];
hash = "sha256-bh/ejuetilwVOCMWhj/WtMbSP6t4HdWrAXf/o+6arlw=";
};
depsBuildBuild = [ buildPackages.stdenv.cc ];
hardeningDisable = [
"strictflexarrays1"
];
passthru = {
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "mawk -W version";
version = lib.replaceString "-" " " finalAttrs.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";
platforms = lib.platforms.unix;
};
})
|