Merge pull request #33577 from dtzWill/fix/cross-2

Minor cross fixes, 2

authored by

John Ericson and committed by
GitHub
eec050f3 0c16a11c

+8 -7
+1 -1
nixos/lib/make-ext4-fs.nix
··· 10 10 pkgs.stdenv.mkDerivation { 11 11 name = "ext4-fs.img"; 12 12 13 - buildInputs = with pkgs; [e2fsprogs libfaketime perl]; 13 + nativeBuildInputs = with pkgs; [e2fsprogs libfaketime perl]; 14 14 15 15 # For obtaining the closure of `storePaths'. 16 16 exportReferencesGraph =
+1 -1
nixos/lib/make-squashfs.nix
··· 8 8 stdenv.mkDerivation { 9 9 name = "squashfs.img"; 10 10 11 - buildInputs = [perl squashfsTools]; 11 + nativeBuildInputs = [perl squashfsTools]; 12 12 13 13 # For obtaining the closure of `storeContents'. 14 14 exportReferencesGraph =
+2 -2
nixos/modules/security/wrappers/default.nix
··· 17 17 hardeningEnable = [ "pie" ]; 18 18 installPhase = '' 19 19 mkdir -p $out/bin 20 - gcc -Wall -O2 -DWRAPPER_DIR=\"${parentWrapperDir}\" \ 20 + $CC -Wall -O2 -DWRAPPER_DIR=\"${parentWrapperDir}\" \ 21 21 -lcap-ng -lcap ${./wrapper.c} -o $out/bin/security-wrapper 22 22 ''; 23 23 }; ··· 79 79 ({ owner = "root"; 80 80 group = "root"; 81 81 } // s) 82 - else if 82 + else if 83 83 (s ? "setuid" && s.setuid) || 84 84 (s ? "setgid" && s.setgid) || 85 85 (s ? "permissions")
+1 -1
pkgs/os-specific/linux/mdadm/default.nix
··· 15 15 16 16 # This is to avoid self-references, which causes the initrd to explode 17 17 # in size and in turn prevents mdraid systems from booting. 18 - allowedReferences = [ stdenv.glibc.out ]; 18 + allowedReferences = [ stdenv.cc.libc.out ]; 19 19 20 20 patches = [ ./no-self-references.patch ]; 21 21
+2 -2
pkgs/tools/misc/ms-sys/default.nix
··· 3 3 stdenv.mkDerivation rec { 4 4 name = "ms-sys-${version}"; 5 5 version = "2.5.3"; 6 - 6 + 7 7 src = fetchurl { 8 8 url = "mirror://sourceforge/ms-sys/${name}.tar.gz"; 9 9 sha256 = "0mijf82cbji4laip6hiy3l5ka5mzq5sivjvyv7wxnc2fd3v7hgp0"; 10 10 }; 11 11 12 - buildInputs = [ gettext ]; 12 + nativeBuildInputs = [ gettext ]; 13 13 14 14 enableParallelBuilding = true; 15 15
+1
pkgs/tools/system/ddrescue/default.nix
··· 16 16 nativeBuildInputs = [ lzip ]; 17 17 18 18 doCheck = hostPlatform == buildPlatform; 19 + configureFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ]; 19 20 20 21 meta = with stdenv.lib; { 21 22 description = "GNU ddrescue, a data recovery tool";