diff --git a/pkgs/games/angband/default.nix b/pkgs/games/angband/default.nix index 0b24988c54f2..24348460d3b5 100644 --- a/pkgs/games/angband/default.nix +++ b/pkgs/games/angband/default.nix @@ -2,18 +2,17 @@ , enableSdl2 ? false, SDL2, SDL2_image, SDL2_sound, SDL2_mixer, SDL2_ttf }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "angband"; version = "4.2.5"; src = fetchFromGitHub { owner = "angband"; repo = "angband"; - rev = version; - sha256 = "sha256-XH2FUTJJaH5TqV2UD1CKKAXE4CRAb6zfg1UQ79a15k0="; + rev = finalAttrs.version; + hash = "sha256-XH2FUTJJaH5TqV2UD1CKKAXE4CRAb6zfg1UQ79a15k0="; }; - nativeBuildInputs = [ autoreconfHook ]; buildInputs = [ ncurses5 ] ++ lib.optionals enableSdl2 [ @@ -33,5 +32,6 @@ stdenv.mkDerivation rec { description = "A single-player roguelike dungeon exploration game"; maintainers = [ maintainers.kenran ]; license = licenses.gpl2; + platforms = platforms.unix; }; -} +})