1{ lib, stdenv, fetchzip, coreutils, perl, gnutar, gzip }:
2let
3 version = "6M62";
4in stdenv.mkDerivation {
5 pname = "inform7";
6 inherit version;
7 buildInputs = [ perl coreutils gnutar gzip ];
8 src = fetchzip {
9 url = "http://inform7.com/download/content/6M62/I7_6M62_Linux_all.tar.gz";
10 sha256 = "0bk0pfymvsn1g8ci0pfdw7dgrlzb232a8pc67y2xk6zgpf3m41vj";
11 };
12 preConfigure = "touch Makefile.PL";
13 buildPhase = "";
14 installPhase = ''
15 mkdir -p $out
16 pushd $src
17 ./install-inform7.sh --prefix $out
18 popd
19
20 substituteInPlace "$out/bin/i7" \
21 --replace "/usr/bin/perl" "${perl}/bin/perl"
22 '';
23
24 meta = with lib; {
25 description = "A design system for interactive fiction";
26 homepage = "http://inform7.com/";
27 license = licenses.artistic2;
28 maintainers = with maintainers; [ mbbx6spp ];
29 platforms = platforms.unix;
30 # never built on aarch64-darwin since first introduction in nixpkgs
31 broken = (stdenv.isDarwin && stdenv.isAarch64) || (stdenv.isLinux && stdenv.isAarch64);
32 };
33}