nixpkgs/pkgs/by-name/lb/lbreakouthd/package.nix
2024-05-03 10:25:50 +00:00

45 lines
985 B
Nix

{ lib
, SDL2
, SDL2_image
, SDL2_mixer
, SDL2_ttf
, directoryListingUpdater
, fetchurl
, stdenv
}:
stdenv.mkDerivation (finalAttrs: {
pname = "lbreakouthd";
version = "1.1.8";
src = fetchurl {
url = "mirror://sourceforge/lgames/lbreakouthd-${finalAttrs.version}.tar.gz";
hash = "sha256-3WZ77KVDNitdIcXPFf0CMXtjDvEXi91Jr7mpeV09Wt4=";
};
buildInputs = [
SDL2
SDL2_image
SDL2_mixer
SDL2_ttf
];
hardeningDisable = [ "format" ];
passthru.updateScript = directoryListingUpdater {
inherit (finalAttrs) pname version;
url = "https://lgames.sourceforge.io/LBreakoutHD/";
extraRegex = "(?!.*-win(32|64)).*";
};
meta = {
homepage = "https://lgames.sourceforge.io/LBreakoutHD/";
description = "A widescreen Breakout clone";
license = lib.licenses.gpl2Plus;
mainProgram = "lbreakouthd";
maintainers = with lib.maintainers; [ AndersonTorres ];
inherit (SDL2.meta) platforms;
broken = stdenv.isDarwin;
};
})