flake: don't strip package

This commit is contained in:
Sapphire
2025-06-08 18:07:23 +02:00
committed by xytovl
parent 9bb11ae693
commit 2f9a46ff91
+10 -3
View File
@@ -5,10 +5,11 @@
outputs = inputs@{ nixpkgs, flake-parts, ... }: outputs = inputs@{ nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } { flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ]; systems = [ "x86_64-linux" ];
perSystem = { pkgs, ... }: let perSystem = { lib, pkgs, ... }: let
# Tools used for development work (clangd, clang-format) # Tools used for development work (clangd, clang-format)
devTools = with pkgs; [ devTools = with pkgs; [
clang-tools clang-tools
gdb
]; ];
# Extra build inputs not yet in the nixpkgs recipe. # Extra build inputs not yet in the nixpkgs recipe.
# Should be submitted to nixpkgs on release # Should be submitted to nixpkgs on release
@@ -17,7 +18,7 @@
sdl2-compat sdl2-compat
]; ];
package = pkgs.wivrn.overrideAttrs (finalAttrs: oldAttrs: { package = pkgs.enableDebugging (pkgs.wivrn.overrideAttrs (finalAttrs: oldAttrs: {
src = ./.; src = ./.;
version = "next"; version = "next";
@@ -25,6 +26,8 @@
# We also don't need the check since we read the revision from the monado-rev file. # We also don't need the check since we read the revision from the monado-rev file.
postUnpack = null; postUnpack = null;
separateDebugInfo = false;
monado = pkgs.applyPatches { monado = pkgs.applyPatches {
inherit (oldAttrs.monado) patches postPatch; inherit (oldAttrs.monado) patches postPatch;
# Force a refetch when the monado rev changes. # Force a refetch when the monado rev changes.
@@ -39,7 +42,11 @@
}; };
buildInputs = oldAttrs.buildInputs ++ extraBuildInputs; buildInputs = oldAttrs.buildInputs ++ extraBuildInputs;
});
cmakeFlags = (oldAttrs.cmakeFlags or [ ]) ++ [
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "Debug")
];
}));
in { in {
packages.default = package; packages.default = package;
devShells.default = package.overrideAttrs (oldAttrs: { devShells.default = package.overrideAttrs (oldAttrs: {