Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 35 lines 952 B view raw
1{ stdenv, lib, fetchFromGitHub 2}: 3 4stdenv.mkDerivation rec { 5 pname = "alan2"; 6 version = "2.8.7"; 7 8 src = fetchFromGitHub { 9 owner = "alan-if"; 10 repo = "alan"; 11 rev = "71f23ec79f7f5d66aa5ae9fd3f9b8dae41a89f15"; 12 sha256 = "066jknqz1v6sismvfxjfffl35h14v8qwgcq99ibhp08dy2fwraln"; 13 }; 14 15 makefile = "Makefile.unix"; 16 17 # Add a workarounf for -fno-common tollchains like upstream gcc-10. 18 # alan-3 is already fixed, but the backport is nontrivial. 19 env.NIX_CFLAGS_COMPILE = "-fcommon"; 20 21 installPhase = '' 22 mkdir -p $out/bin $out/share/alan2 23 cp compiler/alan $out/bin/alan2 24 cp interpreter/arun $out/bin/arun2 25 cp alan.readme ChangeLog $out/share/alan2 26 ''; 27 28 meta = with lib; { 29 homepage = "https://www.alanif.se/"; 30 description = "The Alan interactive fiction language (legacy version)"; 31 license = licenses.artistic2; 32 platforms = platforms.linux; 33 maintainers = with maintainers; [ neilmayhew ]; 34 }; 35}