separateDebugInfo: Assert Linux

Also remove some unintended setting of separateDebugInfo.

+1 -6
-2
pkgs/applications/misc/hello/ex-2/default.nix
··· 10 11 doCheck = false; 12 13 - separateDebugInfo = true; 14 - 15 meta = { 16 description = "A program that produces a familiar, friendly greeting"; 17 longDescription = ''
··· 10 11 doCheck = false; 12 13 meta = { 14 description = "A program that produces a familiar, friendly greeting"; 15 longDescription = ''
-1
pkgs/build-support/setup-hooks/separate-debug-info.sh
··· 18 # Skip non-ELF files. 19 exec 10< "$i" 20 read -n 4 -u 10 magic 21 - if [[ "$magic" =~ ELF ]]; then echo FOO; fi 22 exec 10<&- 23 24 # Extract the Build ID. FIXME: there's probably a cleaner way.
··· 18 # Skip non-ELF files. 19 exec 10< "$i" 20 read -n 4 -u 10 magic 21 exec 10<&- 22 23 # Extract the Build ID. FIXME: there's probably a cleaner way.
+1 -1
pkgs/stdenv/generic/default.nix
··· 138 139 outputs' = 140 outputs ++ 141 - (if separateDebugInfo then [ "debug" ] else []); 142 143 buildInputs' = buildInputs ++ 144 (if separateDebugInfo then [ ../../build-support/setup-hooks/separate-debug-info.sh ] else []);
··· 138 139 outputs' = 140 outputs ++ 141 + (if separateDebugInfo then assert result.isLinux; [ "debug" ] else []); 142 143 buildInputs' = buildInputs ++ 144 (if separateDebugInfo then [ ../../build-support/setup-hooks/separate-debug-info.sh ] else []);
-2
pkgs/tools/package-management/nix/default.nix
··· 43 44 doInstallCheck = false; 45 46 - separateDebugInfo = true; 47 - 48 crossAttrs = { 49 postUnpack = 50 '' export CPATH="${bzip2.crossDrv}/include"
··· 43 44 doInstallCheck = false; 45 46 crossAttrs = { 47 postUnpack = 48 '' export CPATH="${bzip2.crossDrv}/include"