Merge pull request #91139 from Ericson2314/libgpg-error-cross
libgpg-error: Fix cross build
This commit is contained in:
commit
8276081651
@ -34,6 +34,16 @@ in stdenv.mkDerivation (rec {
|
|||||||
'' + lib.optionalString (stdenv.hostPlatform.isAarch32 && stdenv.hostPlatform.isMusl) ''
|
'' + lib.optionalString (stdenv.hostPlatform.isAarch32 && stdenv.hostPlatform.isMusl) ''
|
||||||
ln -s src/syscfg/lock-obj-pub.arm-unknown-linux-gnueabi.h src/syscfg/lock-obj-pub.arm-unknown-linux-musleabihf.h
|
ln -s src/syscfg/lock-obj-pub.arm-unknown-linux-gnueabi.h src/syscfg/lock-obj-pub.arm-unknown-linux-musleabihf.h
|
||||||
ln -s src/syscfg/lock-obj-pub.arm-unknown-linux-gnueabi.h src/syscfg/lock-obj-pub.linux-musleabihf.h
|
ln -s src/syscfg/lock-obj-pub.arm-unknown-linux-gnueabi.h src/syscfg/lock-obj-pub.linux-musleabihf.h
|
||||||
|
''
|
||||||
|
# This file was accidentally excluded from the sdist until
|
||||||
|
# 013720333c6ec1d38791689bc49ba039d98e16b3, post release.
|
||||||
|
# TODO make unconditional next mass rebuild
|
||||||
|
+ lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
||||||
|
cp ${fetchurl {
|
||||||
|
url = "https://raw.githubusercontent.com/gpg/libgpg-error/50e62b36ea01ed25d12c443088b85d4f41a2b3e1/src/gen-lock-obj.sh";
|
||||||
|
sha256 = "10cslipa6npalj869asaamj0w941dhmx0yjafpyyh69ypsg2m2c3";
|
||||||
|
}} ./src/gen-lock-obj.sh
|
||||||
|
chmod +x ./src/gen-lock-obj.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputs = [ "out" "dev" "info" ];
|
outputs = [ "out" "dev" "info" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user