{ rustPlatform, python3, makeWrapper, fetchurl, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "yt"; version = "0.1.0"; src = fetchurl { url = "https://git.vhack.eu/soispha/clients/yt/${finalAttrs.pname}-${finalAttrs.version}.tar.xz"; sha256 = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; }; nativeBuildInputs = [ makeWrapper python3.withPackages (ps: [ps.yt-dlp]) ]; postBuild = '' install -m755 ./python_update/raw_update.py -D "$out/bin/raw_update.py" patchShebangs "$out/bin/raw_update.py" ''; postInstall = '' wrapProgram $out/bin/yt \ --prefix PATH : $out/bin/ ''; })