From bc547213ebc45895e1a1a38f8d395a7f57882aa3 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 6 Jan 2022 19:14:48 +0800 Subject: [PATCH] astrolog: fix cross compilation --- pkgs/applications/science/astronomy/astrolog/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/astronomy/astrolog/default.nix b/pkgs/applications/science/astronomy/astrolog/default.nix index dc567339d136..26d0639ae67f 100644 --- a/pkgs/applications/science/astronomy/astrolog/default.nix +++ b/pkgs/applications/science/astronomy/astrolog/default.nix @@ -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 ];