Skip to content

Commit

Permalink
nix: adapt missing cmake options
Browse files Browse the repository at this point in the history
  • Loading branch information
diniamo committed Sep 13, 2024
1 parent d505b33 commit 6752736
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 35 deletions.
10 changes: 0 additions & 10 deletions nix/cmake-version.patch

This file was deleted.

19 changes: 6 additions & 13 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been remov
src = lib.cleanSource ../.;
};

patches = [
# forces GCC to use -std=c++26
./stdcxx.patch
# Nix does not have CMake 3.30 yet, so override the minimum version
./cmake-version.patch
];

postPatch = ''
# Fix hardcoded paths to /usr installation
sed -i "s#/usr#$out#" src/render/OpenGL.cpp
Expand Down Expand Up @@ -146,16 +139,16 @@ assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been remov

cmakeBuildType =
if debug
then "Debug"
else "RelWithDebInfo";
then "debug"
else "release";

# we want as much debug info as possible
dontStrip = debug;

cmakeFlags = [
(lib.cmakeBool "NO_XWAYLAND" (!enableXWayland))
(lib.cmakeBool "LEGACY_RENDERER" legacyRenderer)
(lib.cmakeBool "NO_SYSTEMD" (!withSystemd))
mesonFlags = [
(lib.mesonBool "NO_XWAYLAND" (!enableXWayland))
(lib.mesonBool "LEGACY_RENDERER" legacyRenderer)
(lib.mesonBool "NO_SYSTEMD" (!withSystemd))
];

postInstall = ''
Expand Down
12 changes: 0 additions & 12 deletions nix/stdcxx.patch

This file was deleted.

0 comments on commit 6752736

Please sign in to comment.