Merge pull request #154084 from NickCao/astrolog

astrolog: fix cross compilation
This commit is contained in:
Bernardo Meurer 2022-01-09 18:05:11 +00:00 committed by GitHub
commit 95be2a7068
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchzip, fetchurl, xorg, gnused
{ lib, stdenv, fetchzip, fetchurl, xorg
, withBigAtlas ? true
, withEphemeris ? true
, withMoonsEphemeris ? true
@ -14,7 +14,8 @@ stdenv.mkDerivation rec {
};
patchPhase = ''
${gnused}/bin/sed -i "s:~/astrolog:$out/astrolog:g" astrolog.h
sed -i "s:~/astrolog:$out/astrolog:g" astrolog.h
substituteInPlace Makefile --replace cc "$CC" --replace strip "$STRIP"
'';
buildInputs = [ xorg.libX11 ];