Commit ae8a7fd9 authored by Colin's avatar Colin
Browse files

wayland-bongocat: use stdenv CC instead of forcing `CC = gcc`

notably, this fixes cross compilation (in which `CC` is flavored,
like `aarch64-linux-gnu-gcc`).
parent 71f2c4d0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -34,6 +34,11 @@ stdenv.mkDerivation (finalAttrs: {
    "release"
  ];

  postPatch = ''
    substituteInPlace Makefile \
      --replace-fail 'CC = gcc' 'CC ?= gcc'
  '';

  installPhase = ''
    runHook preInstall