Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 951 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 autoreconfHook, 6 ncurses5, 7 enableSdl2 ? false, 8 SDL2, 9 SDL2_image, 10 SDL2_mixer, 11 SDL2_ttf, 12}: 13 14stdenv.mkDerivation (finalAttrs: { 15 pname = "angband"; 16 version = "4.2.5"; 17 18 src = fetchFromGitHub { 19 owner = "angband"; 20 repo = "angband"; 21 rev = finalAttrs.version; 22 hash = "sha256-XH2FUTJJaH5TqV2UD1CKKAXE4CRAb6zfg1UQ79a15k0="; 23 }; 24 25 nativeBuildInputs = [ autoreconfHook ]; 26 buildInputs = [ 27 ncurses5 28 ] 29 ++ lib.optionals enableSdl2 [ 30 SDL2 31 SDL2_image 32 SDL2_mixer 33 SDL2_ttf 34 ]; 35 36 configureFlags = lib.optional enableSdl2 "--enable-sdl2"; 37 38 installFlags = [ "bindir=$(out)/bin" ]; 39 40 meta = with lib; { 41 homepage = "https://angband.github.io/angband"; 42 description = "Single-player roguelike dungeon exploration game"; 43 mainProgram = "angband"; 44 maintainers = [ maintainers.kenran ]; 45 license = licenses.gpl2Only; 46 platforms = platforms.unix; 47 }; 48})