dog: support cross-compilation

This commit is contained in:
Daniel Nagy 2023-05-15 21:45:00 +02:00
parent 9f9fcc1483
commit f1ad4e2582
No known key found for this signature in database
GPG key ID: 1B8E8DCB576FB671

View file

@ -9,16 +9,18 @@ stdenv.mkDerivation rec {
sha256 = "3ef25907ec5d1dfb0df94c9388c020b593fbe162d7aaa9bd08f35d2a125af056";
};
patchPhase = ''
postPatch = ''
substituteInPlace Makefile \
--replace "gcc" "cc"
--replace "gcc" "$CC"
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mkdir -p $out/man/man1
cp dog.1 $out/man/man1
cp dog $out/bin
runHook postInstall
'';
meta = with lib; {