2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2023-03-24 00:07:29 +00:00
|
|
|
, directoryListingUpdater
|
2022-04-27 09:35:20 +00:00
|
|
|
, SDL2
|
|
|
|
, SDL2_image
|
|
|
|
, SDL2_mixer
|
|
|
|
, SDL2_ttf
|
|
|
|
}:
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
stdenv.mkDerivation (self: {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "lbreakouthd";
|
2023-03-30 22:05:00 +00:00
|
|
|
version = "1.1.2";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-03-24 00:07:29 +00:00
|
|
|
url = "mirror://sourceforge/lgames/lbreakouthd-${self.version}.tar.gz";
|
2023-03-30 22:05:00 +00:00
|
|
|
hash = "sha256-fK7w5uS7zPJnbEmY3YpxoA9cGuooQbVlDB9Mu6yB8hw=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
SDL2_image
|
|
|
|
SDL2_mixer
|
|
|
|
SDL2_ttf
|
|
|
|
];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
passthru.updateScript = directoryListingUpdater {
|
2023-03-24 00:07:29 +00:00
|
|
|
inherit (self) pname version;
|
2022-12-17 10:02:37 +00:00
|
|
|
url = "https://lgames.sourceforge.io/LBreakoutHD/";
|
|
|
|
extraRegex = "(?!.*-win(32|64)).*";
|
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
meta = {
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://lgames.sourceforge.io/LBreakoutHD/";
|
|
|
|
description = "A widescreen Breakout clone";
|
2023-03-24 00:07:29 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
2022-04-27 09:35:20 +00:00
|
|
|
inherit (SDL2.meta) platforms;
|
2023-03-24 00:07:29 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
2023-03-24 00:07:29 +00:00
|
|
|
})
|