Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 45 lines 995 B view raw
1{ 2 lib, 3 SDL2, 4 SDL2_image, 5 SDL2_mixer, 6 SDL2_ttf, 7 directoryListingUpdater, 8 fetchurl, 9 stdenv, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "lpairs2"; 14 version = "2.3.2"; 15 16 src = fetchurl { 17 url = "mirror://sourceforge/lgames/lpairs2-${finalAttrs.version}.tar.gz"; 18 hash = "sha256-y4eRLWhfI4XMBtGCqdM/l69pftGGIbVjVEkz/v5ytZI="; 19 }; 20 21 buildInputs = [ 22 SDL2 23 SDL2_image 24 SDL2_mixer 25 SDL2_ttf 26 ]; 27 28 enableParallelBuilding = true; 29 30 passthru.updateScript = directoryListingUpdater { 31 inherit (finalAttrs) pname version; 32 url = "https://lgames.sourceforge.io/LPairs/"; 33 extraRegex = "(?!.*-win(32|64)).*"; 34 }; 35 36 meta = { 37 homepage = "http://lgames.sourceforge.net/LPairs/"; 38 description = "Matching the pairs - a typical Memory Game"; 39 license = with lib.licenses; [ gpl2Plus ]; 40 mainProgram = "lpairs2"; 41 maintainers = with lib.maintainers; [ ]; 42 platforms = lib.platforms.unix; 43 broken = stdenv.hostPlatform.isDarwin; 44 }; 45})