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
|
2024-03-02 21:40:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, stdenv
|
2022-04-19 02:57:10 +00:00
|
|
|
}:
|
|
|
|
|
2024-03-02 21:40:52 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-04-19 02:57:10 +00:00
|
|
|
pname = "lpairs2";
|
2023-10-11 01:37:13 +00:00
|
|
|
version = "2.3";
|
2022-04-19 02:57:10 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-03-02 21:40:52 +00:00
|
|
|
url = "mirror://sourceforge/lgames/lpairs2-${finalAttrs.version}.tar.gz";
|
2023-10-11 01:37:13 +00:00
|
|
|
hash = "sha256-gw1BNkcztyTuoXRdx5+TBZNJEJNrLCfEUCQ1JzROogA=";
|
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 {
|
2024-03-02 21:40:52 +00:00
|
|
|
inherit (finalAttrs) pname version;
|
2022-12-09 17:54:54 +00:00
|
|
|
url = "https://lgames.sourceforge.io/LPairs/";
|
|
|
|
extraRegex = "(?!.*-win(32|64)).*";
|
|
|
|
};
|
|
|
|
|
2024-03-02 21:40:52 +00:00
|
|
|
meta = {
|
2022-04-19 02:57:10 +00:00
|
|
|
homepage = "http://lgames.sourceforge.net/LPairs/";
|
|
|
|
description = "Matching the pairs - a typical Memory Game";
|
2024-03-02 21:40:52 +00:00
|
|
|
license = with lib.licenses; [ gpl2Plus ];
|
|
|
|
mainProgram = "lpairs2";
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
broken = stdenv.isDarwin;
|
2022-04-19 02:57:10 +00:00
|
|
|
};
|
2024-03-02 21:40:52 +00:00
|
|
|
})
|