Merge pull request #33577 from dtzWill/fix/cross-2
Minor cross fixes, 2
This commit is contained in:
commit
eec050f395
@ -10,7 +10,7 @@
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "ext4-fs.img";
|
||||
|
||||
buildInputs = with pkgs; [e2fsprogs libfaketime perl];
|
||||
nativeBuildInputs = with pkgs; [e2fsprogs libfaketime perl];
|
||||
|
||||
# For obtaining the closure of `storePaths'.
|
||||
exportReferencesGraph =
|
||||
|
@ -8,7 +8,7 @@
|
||||
stdenv.mkDerivation {
|
||||
name = "squashfs.img";
|
||||
|
||||
buildInputs = [perl squashfsTools];
|
||||
nativeBuildInputs = [perl squashfsTools];
|
||||
|
||||
# For obtaining the closure of `storeContents'.
|
||||
exportReferencesGraph =
|
||||
|
@ -17,7 +17,7 @@ let
|
||||
hardeningEnable = [ "pie" ];
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
gcc -Wall -O2 -DWRAPPER_DIR=\"${parentWrapperDir}\" \
|
||||
$CC -Wall -O2 -DWRAPPER_DIR=\"${parentWrapperDir}\" \
|
||||
-lcap-ng -lcap ${./wrapper.c} -o $out/bin/security-wrapper
|
||||
'';
|
||||
};
|
||||
@ -79,7 +79,7 @@ let
|
||||
({ owner = "root";
|
||||
group = "root";
|
||||
} // s)
|
||||
else if
|
||||
else if
|
||||
(s ? "setuid" && s.setuid) ||
|
||||
(s ? "setgid" && s.setgid) ||
|
||||
(s ? "permissions")
|
||||
|
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# This is to avoid self-references, which causes the initrd to explode
|
||||
# in size and in turn prevents mdraid systems from booting.
|
||||
allowedReferences = [ stdenv.glibc.out ];
|
||||
allowedReferences = [ stdenv.cc.libc.out ];
|
||||
|
||||
patches = [ ./no-self-references.patch ];
|
||||
|
||||
|
@ -3,13 +3,13 @@
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ms-sys-${version}";
|
||||
version = "2.5.3";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/ms-sys/${name}.tar.gz";
|
||||
sha256 = "0mijf82cbji4laip6hiy3l5ka5mzq5sivjvyv7wxnc2fd3v7hgp0";
|
||||
};
|
||||
|
||||
buildInputs = [ gettext ];
|
||||
nativeBuildInputs = [ gettext ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
@ -16,6 +16,7 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ lzip ];
|
||||
|
||||
doCheck = hostPlatform == buildPlatform;
|
||||
configureFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "GNU ddrescue, a data recovery tool";
|
||||
|
Loading…
Reference in New Issue
Block a user