1 { stdenv, lib, fetchFromGitHub, libyaml }:
5 version = "unstable-2023-03-27";
7 src = fetchFromGitHub {
8 owner = "thefloweringash";
10 rev = "d7852691762635028d237b7d00c3dc6a6613de79";
11 hash = "sha256-syxioFiGvEv4Ypk5hlIjLQth5YmdFdr+NC+aXSXzG4k=";
14 # Nix takes care of these paths. Avoiding the use of `pkg-config` prevents an infinite recursion.
16 substituteInPlace Makefile.boot \
17 --replace '$(shell pkg-config --cflags yaml-0.1)' "" \
18 --replace '$(shell pkg-config --libs yaml-0.1)' "-lyaml"
21 buildInputs = [ libyaml ];
23 makeFlags = [ "-f" "Makefile.boot" "PREFIX=${placeholder "out"}"];
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;