diff options
Diffstat (limited to 'sys/nixpkgs/pkgs/ytc/package.nix')
-rw-r--r-- | sys/nixpkgs/pkgs/ytc/package.nix | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/nixpkgs/pkgs/ytc/package.nix b/sys/nixpkgs/pkgs/ytc/package.nix index 8c02f073..5428ee18 100644 --- a/sys/nixpkgs/pkgs/ytc/package.nix +++ b/sys/nixpkgs/pkgs/ytc/package.nix @@ -1,8 +1,10 @@ { + lib, rustPlatform, ytcc, yt-dlp, mpv, + makeWrapper, }: rustPlatform.buildRustPackage { pname = "ytc"; @@ -11,9 +13,12 @@ rustPlatform.buildRustPackage { src = ./.; cargoHash = "sha256-KogHeuKKYhhpfSg+ImPCO4RwxWMOhSBXa3OjwCBZxEE="; - buildInputs = [ - ytcc - yt-dlp - mpv + nativeBuildInputs = [ + makeWrapper ]; + + postInstall = '' + wrapProgram $out/bin/ytc \ + --set PATH ${lib.makeBinPath [mpv yt-dlp ytcc]} + ''; } |