Merge pull request #283592 from adamjedrzejewski/fix-angband

angband: add meta.platforms, use finalAttrs pattern
This commit is contained in:
Weijia Wang 2024-02-08 00:09:08 +01:00 committed by GitHub
commit 0e69c429b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
};
}
})