nixpkgs/pkgs/by-name/lp/lpairs2/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
976 B
Nix
Raw Normal View History

2022-04-19 02:57:10 +00:00
{
lib,
SDL2,
SDL2_image,
SDL2_mixer,
SDL2_ttf,
2022-12-09 17:54:54 +00:00
directoryListingUpdater,
fetchurl,
stdenv,
2022-04-19 02:57:10 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2022-04-19 02:57:10 +00:00
pname = "lpairs2";
2024-06-28 17:52:41 +00:00
version = "2.3.1";
2022-04-19 02:57:10 +00:00
src = fetchurl {
url = "mirror://sourceforge/lgames/lpairs2-${finalAttrs.version}.tar.gz";
2024-06-28 17:52:41 +00:00
hash = "sha256-ES5RGr817vc8t2DFNeETTqrm0uwk3JuTypSZjXK86Bg=";
2022-04-19 02:57:10 +00:00
};
buildInputs = [
SDL2
SDL2_image
SDL2_mixer
SDL2_ttf
];
2022-12-09 17:54:54 +00:00
passthru.updateScript = directoryListingUpdater {
inherit (finalAttrs) pname version;
2022-12-09 17:54:54 +00:00
url = "https://lgames.sourceforge.io/LPairs/";
extraRegex = "(?!.*-win(32|64)).*";
};
meta = {
2022-04-19 02:57:10 +00:00
homepage = "http://lgames.sourceforge.net/LPairs/";
description = "Matching the pairs - a typical Memory Game";
license = with lib.licenses; [ gpl2Plus ];
mainProgram = "lpairs2";
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.unix;
broken = stdenv.hostPlatform.isDarwin;
2022-04-19 02:57:10 +00:00
};
})