Skip to content

Commit 2a3b953

Browse files
committed
ztools: init at 7/3.1
1 parent f137791 commit 2a3b953

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

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)