2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv, fetchzip, coreutils, perl, gnutar, gzip }:
|
2016-12-04 23:22:54 +00:00
|
|
|
let
|
|
|
|
version = "6M62";
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "inform7";
|
|
|
|
inherit version;
|
2016-12-04 23:22:54 +00:00
|
|
|
buildInputs = [ perl coreutils gnutar gzip ];
|
|
|
|
src = fetchzip {
|
|
|
|
url = "http://inform7.com/download/content/6M62/I7_6M62_Linux_all.tar.gz";
|
|
|
|
sha256 = "0bk0pfymvsn1g8ci0pfdw7dgrlzb232a8pc67y2xk6zgpf3m41vj";
|
|
|
|
};
|
|
|
|
preConfigure = "touch Makefile.PL";
|
|
|
|
buildPhase = "";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
pushd $src
|
|
|
|
./install-inform7.sh --prefix $out
|
|
|
|
popd
|
|
|
|
|
|
|
|
substituteInPlace "$out/bin/i7" \
|
|
|
|
--replace "/usr/bin/perl" "${perl}/bin/perl"
|
|
|
|
'';
|
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "A design system for interactive fiction";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://inform7.com/";
|
2016-12-04 23:22:54 +00:00
|
|
|
license = licenses.artistic2;
|
|
|
|
maintainers = with maintainers; [ mbbx6spp ];
|
|
|
|
platforms = platforms.unix;
|
2022-12-06 20:47:40 +00:00
|
|
|
# never built on aarch64-darwin since first introduction in nixpkgs
|
|
|
|
broken = (stdenv.isDarwin && stdenv.isAarch64) || (stdenv.isLinux && stdenv.isAarch64);
|
2016-12-04 23:22:54 +00:00
|
|
|
};
|
|
|
|
}
|