Merge pull request #283592 from adamjedrzejewski/fix-angband
angband: add meta.platforms, use finalAttrs pattern
This commit is contained in:
commit
0e69c429b0
1 changed files with 5 additions and 5 deletions
|
@ -2,18 +2,17 @@
|
||||||
, enableSdl2 ? false, SDL2, SDL2_image, SDL2_sound, SDL2_mixer, SDL2_ttf
|
, enableSdl2 ? false, SDL2, SDL2_image, SDL2_sound, SDL2_mixer, SDL2_ttf
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "angband";
|
pname = "angband";
|
||||||
version = "4.2.5";
|
version = "4.2.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "angband";
|
owner = "angband";
|
||||||
repo = "angband";
|
repo = "angband";
|
||||||
rev = version;
|
rev = finalAttrs.version;
|
||||||
sha256 = "sha256-XH2FUTJJaH5TqV2UD1CKKAXE4CRAb6zfg1UQ79a15k0=";
|
hash = "sha256-XH2FUTJJaH5TqV2UD1CKKAXE4CRAb6zfg1UQ79a15k0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
buildInputs = [ ncurses5 ]
|
buildInputs = [ ncurses5 ]
|
||||||
++ lib.optionals enableSdl2 [
|
++ lib.optionals enableSdl2 [
|
||||||
|
@ -33,5 +32,6 @@ stdenv.mkDerivation rec {
|
||||||
description = "A single-player roguelike dungeon exploration game";
|
description = "A single-player roguelike dungeon exploration game";
|
||||||
maintainers = [ maintainers.kenran ];
|
maintainers = [ maintainers.kenran ];
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue