forked from mirrors/nixpkgs
separateDebugInfo: Assert Linux
Also remove some unintended setting of separateDebugInfo.
This commit is contained in:
parent
f9d1c58f20
commit
2a28bc6691
|
@ -10,8 +10,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
doCheck = false;
|
||||
|
||||
separateDebugInfo = true;
|
||||
|
||||
meta = {
|
||||
description = "A program that produces a familiar, friendly greeting";
|
||||
longDescription = ''
|
||||
|
|
|
@ -18,7 +18,6 @@ _separateDebugInfo() {
|
|||
# Skip non-ELF files.
|
||||
exec 10< "$i"
|
||||
read -n 4 -u 10 magic
|
||||
if [[ "$magic" =~ ELF ]]; then echo FOO; fi
|
||||
exec 10<&-
|
||||
|
||||
# Extract the Build ID. FIXME: there's probably a cleaner way.
|
||||
|
|
|
@ -138,7 +138,7 @@ let
|
|||
|
||||
outputs' =
|
||||
outputs ++
|
||||
(if separateDebugInfo then [ "debug" ] else []);
|
||||
(if separateDebugInfo then assert result.isLinux; [ "debug" ] else []);
|
||||
|
||||
buildInputs' = buildInputs ++
|
||||
(if separateDebugInfo then [ ../../build-support/setup-hooks/separate-debug-info.sh ] else []);
|
||||
|
|
|
@ -43,8 +43,6 @@ let
|
|||
|
||||
doInstallCheck = false;
|
||||
|
||||
separateDebugInfo = true;
|
||||
|
||||
crossAttrs = {
|
||||
postUnpack =
|
||||
'' export CPATH="${bzip2.crossDrv}/include"
|
||||
|
|
Loading…
Reference in a new issue