Compare commits
2 Commits
3d1efd6735
...
d4f83e11db
| Author | SHA1 | Date | |
|---|---|---|---|
|
d4f83e11db
|
|||
|
db588bd57b
|
12
flake.nix
12
flake.nix
@ -276,7 +276,17 @@ rec {
|
|||||||
|
|
||||||
# The wrapper enters the correct working dir, so fonts/shaders/presets are available
|
# The wrapper enters the correct working dir, so fonts/shaders/presets are available
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
makeWrapper $out/lib/${pname} $out/bin/${pname} --chdir "${placeholder "out"}/lib"
|
makeWrapper $out/lib/${pname} $out/bin/${pname} --chdir "$out/lib"
|
||||||
|
|
||||||
|
# Generate a .desktop file
|
||||||
|
mkdir -p $out/share/applications
|
||||||
|
cat <<INI > $out/share/applications/${pname}.desktop
|
||||||
|
[Desktop Entry]
|
||||||
|
Terminal=true
|
||||||
|
Name=PuzzleSpaces
|
||||||
|
Exec=$out/bin/${pname} %f
|
||||||
|
Type=Application
|
||||||
|
INI
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,6 @@
|
|||||||
#include <tracy/Tracy.hpp>
|
#include <tracy/Tracy.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef THREADPOOL
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#define NOGDI // All GDI defines and routines
|
#define NOGDI // All GDI defines and routines
|
||||||
#define NOUSER // All USER defines and routines
|
#define NOUSER // All USER defines and routines
|
||||||
@ -28,7 +27,6 @@
|
|||||||
#undef near
|
#undef near
|
||||||
#undef far
|
#undef far
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
// Window
|
// Window
|
||||||
constexpr int INITIAL_WIDTH = 600;
|
constexpr int INITIAL_WIDTH = 600;
|
||||||
@ -93,4 +91,4 @@ constexpr Color BLOCK_COLOR = DARKBLUE;
|
|||||||
constexpr Color TARGET_BLOCK_COLOR = RED;
|
constexpr Color TARGET_BLOCK_COLOR = RED;
|
||||||
constexpr Color WALL_COLOR = BLACK;
|
constexpr Color WALL_COLOR = BLACK;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Reference in New Issue
Block a user