diff --git a/pkgs/games/sgt-puzzles/default.nix b/pkgs/games/sgt-puzzles/default.nix index f765961266ed..4c537d4dd372 100644 --- a/pkgs/games/sgt-puzzles/default.nix +++ b/pkgs/games/sgt-puzzles/default.nix @@ -1,6 +1,7 @@ { lib, stdenv, fetchurl, desktop-file-utils , gtk3, libX11, cmake, imagemagick , pkg-config, perl, wrapGAppsHook +, isMobile ? false }: stdenv.mkDerivation rec { @@ -26,6 +27,8 @@ stdenv.mkDerivation rec { wrapGAppsHook ]; + NIX_CFLAGS_COMPILE = if isMobile then "-DSTYLUS_BASED" else ""; + buildInputs = [ gtk3 libX11 ]; postInstall = '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 54a82c162f71..c62557b39f40 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -33067,6 +33067,10 @@ with pkgs; sgtpuzzles = callPackage ../games/sgt-puzzles { }; + sgtpuzzles-mobile = callPackage ../games/sgt-puzzles { + isMobile = true; + }; + shattered-pixel-dungeon = callPackage ../games/shattered-pixel-dungeon { }; shticker-book-unwritten = callPackage ../games/shticker-book-unwritten { };