Unverified Commit f1ad4e25 authored by Daniel Nagy's avatar Daniel Nagy
Browse files

dog: support cross-compilation

parent 9f9fcc14
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; {