diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2024-03-02 17:58:04 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2024-03-02 17:58:04 -0300 |
commit | 27fbdc911975979b00a6b6a8440e09215938d121 (patch) | |
tree | e189d76674b258fa141dd983406ae5a8897171d9 /pkgs/by-name/lp | |
parent | e9a443861a6542ff4facfdb94326286e7b600296 (diff) |
lpairs2: migrate to by-name
Diffstat (limited to 'pkgs/by-name/lp')
-rw-r--r-- | pkgs/by-name/lp/lpairs2/package.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/by-name/lp/lpairs2/package.nix b/pkgs/by-name/lp/lpairs2/package.nix new file mode 100644 index 0000000000000..7993fd0657dac --- /dev/null +++ b/pkgs/by-name/lp/lpairs2/package.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, fetchurl +, SDL2 +, SDL2_image +, SDL2_mixer +, SDL2_ttf +, directoryListingUpdater +}: + +stdenv.mkDerivation rec { + pname = "lpairs2"; + version = "2.3"; + + src = fetchurl { + url = "mirror://sourceforge/lgames/${pname}-${version}.tar.gz"; + hash = "sha256-gw1BNkcztyTuoXRdx5+TBZNJEJNrLCfEUCQ1JzROogA="; + }; + + buildInputs = [ + SDL2 + SDL2_image + SDL2_mixer + SDL2_ttf + ]; + + passthru.updateScript = directoryListingUpdater { + inherit pname version; + url = "https://lgames.sourceforge.io/LPairs/"; + extraRegex = "(?!.*-win(32|64)).*"; + }; + + meta = with lib; { + broken = stdenv.isDarwin; + homepage = "http://lgames.sourceforge.net/LPairs/"; + description = "Matching the pairs - a typical Memory Game"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ AndersonTorres ]; + platforms = platforms.unix; + }; +} |