dog: support cross-compilation
This commit is contained in:
parent
9f9fcc1483
commit
f1ad4e2582
1 changed files with 4 additions and 2 deletions
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue