strace: Fix cross-compilation
This commit is contained in:
parent
5815c7dfa6
commit
d61a22fb0e
@ -33,4 +33,6 @@ stdenv.mkDerivation rec {
|
||||
platforms = platforms.linux;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
passthru.supportsHost = !stdenv.hostPlatform.isRiscV;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, perl, libunwind }:
|
||||
{ stdenv, fetchurl, perl, libunwind, buildPackages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "strace-${version}";
|
||||
@ -9,11 +9,12 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0dsw6xcfrmygidp1dj2ch8cl8icrar7789snkb2r8gh78kdqhxjw";
|
||||
};
|
||||
|
||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||
nativeBuildInputs = [ perl ];
|
||||
|
||||
buildInputs = [ libunwind ]; # support -k
|
||||
buildInputs = stdenv.lib.optional libunwind.supportsHost [ libunwind ]; # support -k
|
||||
|
||||
configureFlags = stdenv.lib.optional stdenv.hostPlatform.isAarch64 "--enable-mpers=check";
|
||||
configureFlags = stdenv.lib.optional (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isRiscV) "--enable-mpers=check";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://strace.io/;
|
||||
|
Loading…
Reference in New Issue
Block a user