diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2024-03-02 17:55:59 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2024-03-02 19:08:07 -0300 |
commit | 49d3ac8c990f3071d972b4e33886cc62252e06d5 (patch) | |
tree | e357ef7099e0628784126f45a766cd3752f4407e /pkgs/by-name/lb | |
parent | b39fd9c745477e559607ed11e6afddf2c0793a9d (diff) |
lbreakouthd: migrate to by-name
Diffstat (limited to 'pkgs/by-name/lb')
-rw-r--r-- | pkgs/by-name/lb/lbreakouthd/package.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/by-name/lb/lbreakouthd/package.nix b/pkgs/by-name/lb/lbreakouthd/package.nix new file mode 100644 index 0000000000000..64be757c35ad3 --- /dev/null +++ b/pkgs/by-name/lb/lbreakouthd/package.nix @@ -0,0 +1,43 @@ +{ lib +, stdenv +, fetchurl +, directoryListingUpdater +, SDL2 +, SDL2_image +, SDL2_mixer +, SDL2_ttf +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "lbreakouthd"; + version = "1.1.6"; + + src = fetchurl { + url = "mirror://sourceforge/lgames/lbreakouthd-${finalAttrs.version}.tar.gz"; + hash = "sha256-Gor2LnM8vi6skJbzfR5023J13GxvqcpIrua9S+nT/S0="; + }; + + 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; + maintainers = with lib.maintainers; [ AndersonTorres ]; + inherit (SDL2.meta) platforms; + broken = stdenv.isDarwin; + }; +}) |