diff --git a/pkgs/by-name/tt/ttl2c/package.nix b/pkgs/by-name/tt/ttl2c/package.nix new file mode 100644 index 000000000000..1fe484a48645 --- /dev/null +++ b/pkgs/by-name/tt/ttl2c/package.nix @@ -0,0 +1,54 @@ +{ + lib, + stdenv, + fetchFromGitHub, + boost, + lv2, + python3, + wafHook, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "ttl2c"; + version = "1.0.1"; + + src = fetchFromGitHub { + owner = "lvtk"; + repo = "ttl2c"; + rev = "b64e425f38399a0d18d1252694d6d6980c800841"; + hash = "sha256-Vy3UoMnr9SIMw0pZfyuLjDHf/Gzgn5g3V0fGTIypQyM="; + }; + + # remove outdated vendored waf + postPatch = '' + rm waf + ''; + + nativeBuildInputs = [ + python3 + wafHook + ]; + + buildInputs = [ + boost + lv2 + ]; + + enableParallelBuilding = true; + + meta = { + description = "C header generator for LV2 plugins"; + mainProgram = "ttl2c"; + homepage = "https://lvtk.org/"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ + bot-wxt1221 + fliegendewurst + ]; + platforms = lib.platforms.unix; + badPlatforms = [ + "x86_64-darwin" + "aarch64-darwin" + ]; + }; +})