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
+11 -4
View File
@@ -5,10 +5,11 @@
outputs = inputs@{ nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
perSystem = { pkgs, ... }: let
perSystem = { lib, pkgs, ... }: let
# Tools used for development work (clangd, clang-format)
devTools = with pkgs; [
clang-tools
gdb
];
# Extra build inputs not yet in the nixpkgs recipe.
# Should be submitted to nixpkgs on release
@@ -17,7 +18,7 @@
sdl2-compat
];
package = pkgs.wivrn.overrideAttrs (finalAttrs: oldAttrs: {
package = pkgs.enableDebugging (pkgs.wivrn.overrideAttrs (finalAttrs: oldAttrs: {
src = ./.;
version = "next";
@@ -25,6 +26,8 @@
# We also don't need the check since we read the revision from the monado-rev file.
postUnpack = null;
separateDebugInfo = false;
monado = pkgs.applyPatches {
inherit (oldAttrs.monado) patches postPatch;
# Force a refetch when the monado rev changes.
@@ -39,7 +42,11 @@
};
buildInputs = oldAttrs.buildInputs ++ extraBuildInputs;
});
cmakeFlags = (oldAttrs.cmakeFlags or [ ]) ++ [
(lib.cmakeFeature "CMAKE_BUILD_TYPE" "Debug")
];
}));
in {
packages.default = package;
devShells.default = package.overrideAttrs (oldAttrs: {
@@ -47,4 +54,4 @@
});
};
};
}
}