···45 hash = "sha256-e3IW8D4aLU6d36ErUHDUDiXF1lN4HCn5OCX6GwaT3iQ=";
46 };
4700000048 # Dirty approach to add patches after cargoSetupPostUnpackHook
49 # We should eventually use a cargo vendor patch hook instead
50 preConfigure = ''
···45 hash = "sha256-e3IW8D4aLU6d36ErUHDUDiXF1lN4HCn5OCX6GwaT3iQ=";
46 };
4748+ patches = [
49+ # Disable debug symbols in release builds
50+ # The debug symbols are stripped afterwards anyways, and building with them requires extra memory
51+ ./disable-debug.patch
52+ ];
53+54 # Dirty approach to add patches after cargoSetupPostUnpackHook
55 # We should eventually use a cargo vendor patch hook instead
56 preConfigure = ''