Merge pull request #232081 from nagy/dog

dog: support cross-compilation
This commit is contained in:
Artturi
2023-05-16 04:48:32 +03:00
committed by GitHub
+4 -2
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; {