Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 34 lines 1.1 kB view raw
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 = "Design system for interactive fiction"; 26 mainProgram = "i7"; 27 homepage = "http://inform7.com/"; 28 license = licenses.artistic2; 29 maintainers = with maintainers; [ mbbx6spp ]; 30 platforms = platforms.unix; 31 # never built on aarch64-darwin since first introduction in nixpkgs 32 broken = (stdenv.isDarwin && stdenv.isAarch64) || (stdenv.isLinux && stdenv.isAarch64); 33 }; 34}