Skip to content

Commit

Permalink
pkgs/wlx-overlay-s: enable release builds again
Browse files Browse the repository at this point in the history
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
  • Loading branch information
Scrumplex committed Feb 12, 2024
1 parent 6628b7f commit 42f49b3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/wlx-overlay-s/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ rustPlatform.buildRustPackage {

env.SHADERC_LIB_DIR = "${lib.getLib shaderc}/lib";

patches = [
./release-opt-level-1.patch
];

postPatch = lib.optionalString withDefaultPrograms ''
substituteAllInPlace src/res/watch.yaml \
--replace '"pactl"' '"${lib.getExe' pulseaudio "pactl"}"'
Expand All @@ -77,10 +81,6 @@ rustPlatform.buildRustPackage {
}
'';

# Release builds are broken as of 2024-02-12
dontStrip = true;
buildType = "debug";

meta = with lib; {
description = "Wayland desktop overlay for SteamVR and OpenXR, Vulkan edition";
homepage = "https://github.com/galister/wlx-overlay-s";
Expand Down
10 changes: 10 additions & 0 deletions pkgs/wlx-overlay-s/release-opt-level-1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
diff --git a/Cargo.toml b/Cargo.toml
index e4f93a5..3eefa4f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -54,3 +54,5 @@ openxr = ["dep:openxr"]
osc = ["dep:rosc"]
default = ["openvr", "openxr", "osc"]

+[profile.release]
+opt-level = 1

0 comments on commit 42f49b3

Please sign in to comment.