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