mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
42 lines
877 B
Nix
42 lines
877 B
Nix
{ 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;
|
|
};
|
|
}
|