mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-15 16:45:15 +00:00
![stuebinm](/assets/img/avatar_default.png)
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
35 lines
1.0 KiB
Nix
35 lines
1.0 KiB
Nix
{ lib, stdenv, fetchzip, coreutils, perl, gnutar, gzip }:
|
|
let
|
|
version = "6M62";
|
|
in stdenv.mkDerivation {
|
|
pname = "inform7";
|
|
inherit version;
|
|
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"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A design system for interactive fiction";
|
|
mainProgram = "i7";
|
|
homepage = "http://inform7.com/";
|
|
license = licenses.artistic2;
|
|
maintainers = with maintainers; [ mbbx6spp ];
|
|
platforms = platforms.unix;
|
|
# never built on aarch64-darwin since first introduction in nixpkgs
|
|
broken = (stdenv.isDarwin && stdenv.isAarch64) || (stdenv.isLinux && stdenv.isAarch64);
|
|
};
|
|
}
|