12 stdenv.mkDerivation rec {
13 pname = "rocksndiamonds";
17 url = "https://www.artsoft.org/RELEASES/linux/${pname}/${pname}-${version}-linux.tar.gz";
18 hash = "sha256-e/aYjjnEM6MP14FGX+N92U9fRNEjIaDfE1znl6A+4As=";
21 desktopItem = makeDesktopItem {
22 name = "rocksndiamonds";
23 exec = "rocksndiamonds";
24 icon = "rocksndiamonds";
25 comment = meta.description;
26 desktopName = "Rocks'n'Diamonds";
27 genericName = "Tile-based puzzle";
28 categories = [ "Game" "LogicGame" ];
31 buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_net zlib ];
34 dataDir="$out/share/rocksndiamonds"
35 makeFlags+="BASE_PATH=$dataDir"
39 appDir=$out/share/applications
40 iconDir=$out/share/icons/hicolor/32x32/apps
41 mkdir -p $out/bin $appDir $iconDir $dataDir
42 cp rocksndiamonds $out/bin/
43 ln -s ${desktopItem}/share/applications/* $appDir/
44 ln -s $dataDir/graphics/gfx_classic/RocksIcon32x32.png $iconDir/rocksndiamonds.png
45 cp -r conf docs graphics levels music sounds $dataDir
48 enableParallelBuilding = true;
51 description = "Scrolling tile-based arcade style puzzle game";
52 mainProgram = "rocksndiamonds";
53 homepage = "https://www.artsoft.org/rocksndiamonds/";
54 license = licenses.gpl2Only;
55 platforms = platforms.linux;
56 maintainers = with maintainers; [ orivej ];