diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-02-08 00:09:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 00:09:08 +0100 |
commit | 0e69c429b032528b8443f96b6296d7e2abd95486 (patch) | |
tree | 4e6af35cb725cd4f2d9ced197d4d63c04883c348 /pkgs/games | |
parent | 4e64a102394936d095615347c97ac03a96db94ee (diff) | |
parent | 1a48d83d1d5289cf01122e306412b550b4cc86eb (diff) |
Merge pull request #283592 from adamjedrzejewski/fix-angband
angband: add meta.platforms, use finalAttrs pattern
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/angband/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/games/angband/default.nix b/pkgs/games/angband/default.nix index 0b24988c54f21..24348460d3b5d 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; }; -} +}) |