Unverified Commit bd3eee92 authored by Artturi's avatar Artturi Committed by GitHub
Browse files

Merge pull request #232081 from nagy/dog

dog: support cross-compilation
parents cc7ec74b f1ad4e25
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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; {