lol

Merge pull request #234855 from reckenrode/rewrite-tbd-fix

rewrite-tbd: avoid infinite recursion when cmake is not cmakeMinimal

authored by

Weijia Wang and committed by
GitHub
7849b5f9 957db96d

+10 -2
+10 -2
pkgs/os-specific/darwin/rewrite-tbd/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, cmake, pkg-config, libyaml }: 1 + { stdenv, lib, fetchFromGitHub, libyaml }: 2 2 3 3 stdenv.mkDerivation { 4 4 pname = "rewrite-tbd"; ··· 11 11 sha256 = "08sk91zwj6n9x2ymwid2k7y0rwv5b7p6h1b25ipx1dv0i43p6v1a"; 12 12 }; 13 13 14 - nativeBuildInputs = [ cmake pkg-config ]; 14 + # Nix takes care of these paths. Avoiding the use of `pkg-config` prevents an infinite recursion. 15 + postPatch = '' 16 + substituteInPlace Makefile.boot \ 17 + --replace '$(shell pkg-config --cflags yaml-0.1)' "" \ 18 + --replace '$(shell pkg-config --libs yaml-0.1)' "-lyaml" 19 + ''; 20 + 15 21 buildInputs = [ libyaml ]; 22 + 23 + makeFlags = [ "-f" "Makefile.boot" "PREFIX=${placeholder "out"}"]; 16 24 17 25 meta = with lib; { 18 26 homepage = "https://github.com/thefloweringash/rewrite-tbd/";