Skip to content

Commit 14f4134

Browse files
authored
ztools: init at 7/3.1 (#390419)
2 parents 2ccfe3a + 2a3b953 commit 14f4134

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9367,6 +9367,12 @@
93679367
githubId = 1379411;
93689368
name = "Georg Haas";
93699369
};
9370+
haylin = {
9371+
email = "[email protected]";
9372+
github = "haylinmoore";
9373+
githubId = 8162992;
9374+
name = "Haylin Moore";
9375+
};
93709376
hbjydev = {
93719377
email = "[email protected]";
93729378
github = "hbjydev";

pkgs/by-name/zt/ztools/package.nix

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchurl,
5+
unixtools,
6+
groff,
7+
}:
8+
stdenv.mkDerivation (finalAttrs: {
9+
pname = "ztools";
10+
version = "7/3.1";
11+
12+
src = fetchurl {
13+
url = "http://mirror.ifarchive.org/if-archive/infocom/tools/ztools/ztools731.tar.gz";
14+
hash = "sha256-vlQX0/fCAr88KJwMnYUSROFOg9tfVK5Hz58AUDuhNXg=";
15+
};
16+
17+
sourceRoot = ".";
18+
19+
nativeBuildInputs = [
20+
groff
21+
unixtools.col
22+
];
23+
24+
# compiler flags as defaults have changed
25+
env.NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration -Wno-implicit-int";
26+
27+
installPhase = ''
28+
runHook preInstall
29+
mkdir -p $out/bin/
30+
cp {check,infodump,pix2gif,txd} $out/bin/
31+
runHook postInstall
32+
'';
33+
34+
meta = {
35+
description = "An essential set of Z-machine tools for interpreter authors, experienced Inform programmers, and Z-code hackers.";
36+
homepage = "http://inform-fiction.org/zmachine/ztools.html";
37+
license = lib.licenses.cc-by-sa-40;
38+
platforms = lib.platforms.unix;
39+
maintainers = [ lib.maintainers.haylin ];
40+
mainProgram = "txd";
41+
};
42+
})

0 commit comments

Comments
 (0)