python312Packages.yoda: 2.0.1 -> 2.0.2
[NixPkgs.git] / pkgs / os-specific / darwin / rewrite-tbd / default.nix
blob527cca8e87c1e0e0275bc5ea5ede230de311882d
1 { stdenv, lib, fetchFromGitHub, libyaml }:
3 stdenv.mkDerivation {
4   pname = "rewrite-tbd";
5   version = "unstable-2023-03-27";
7   src = fetchFromGitHub {
8     owner = "thefloweringash";
9     repo = "rewrite-tbd";
10     rev = "d7852691762635028d237b7d00c3dc6a6613de79";
11     hash = "sha256-syxioFiGvEv4Ypk5hlIjLQth5YmdFdr+NC+aXSXzG4k=";
12   };
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   '';
21   buildInputs = [ libyaml ];
23   makeFlags = [ "-f" "Makefile.boot" "PREFIX=${placeholder "out"}"];
25   meta = with lib; {
26     homepage = "https://github.com/thefloweringash/rewrite-tbd/";
27     description = "Rewrite filepath in .tbd to Nix applicable format";
28     mainProgram = "rewrite-tbd";
29     platforms = platforms.unix;
30     license = licenses.mit;
31   };