21 music = stdenv.mkDerivation {
23 version = lib.versions.majorMinor version;
26 url = "https://www.7kfans.com/downloads/7kaa-music-${lib.versions.majorMinor version}.tar.bz2";
27 sha256 = "sha256-sNdntuJXGaFPXzSpN0SoAi17wkr2YnW+5U38eIaVwcM=";
35 meta.license = lib.licenses.unfree;
41 gccStdenv.mkDerivation rec {
42 inherit pname version;
44 src = fetchFromGitHub {
45 owner = "the3dfxdude";
47 rev = "9db2a43e1baee25a44b7aa7e9cedde9a107ed34b";
48 sha256 = "sha256-OAKaRuPP0/n8pO3wIUvGKs6n+U+EmZXUTywXYDAan1o=";
51 nativeBuildInputs = [ autoreconfHook pkg-config ];
52 buildInputs = [ openal enet SDL2 curl gettext libiconv ];
58 hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ];
61 mkdir $out/share/7kaa/MUSIC
62 cp -R ${music}/MUSIC $out/share/7kaa/
63 cp ${music}/COPYING-Music.txt $out/share/7kaa/MUSIC
64 cp ${music}/COPYING-Music.txt $out/share/doc/7kaa
67 # Multiplayer is auto-disabled for non-x86 system
70 homepage = "https://www.7kfans.com";
71 description = "GPL release of the Seven Kingdoms with multiplayer (available only on x86 platforms)";
72 license = licenses.gpl2Only;
73 platforms = platforms.x86_64 ++ platforms.aarch64;
74 maintainers = with maintainers; [ _1000101 ];