aboutsummaryrefslogtreecommitdiffstats
path: root/sys/nixpkgs/pkgs/yt/ytc.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nixpkgs/pkgs/yt/ytc.nix')
-rw-r--r--sys/nixpkgs/pkgs/yt/ytc.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/nixpkgs/pkgs/yt/ytc.nix b/sys/nixpkgs/pkgs/yt/ytc.nix
new file mode 100644
index 00000000..8967ea35
--- /dev/null
+++ b/sys/nixpkgs/pkgs/yt/ytc.nix
@@ -0,0 +1,27 @@
+{
+ lib,
+ rustPlatform,
+ ytcc,
+ yt-dlp,
+ mpv,
+ makeWrapper,
+}:
+rustPlatform.buildRustPackage {
+ pname = "ytc";
+ version = "0.1.0";
+
+ src = ./.;
+ cargoHash = "sha256-X3bw6p09RttYR/6unu4rGawbmrBuDV8QNzaQlg1cBrs=";
+
+ buildNoDefaultFeatures = true;
+ buildFeatures = ["ytc"];
+
+ nativeBuildInputs = [
+ makeWrapper
+ ];
+
+ postInstall = ''
+ wrapProgram $out/bin/ytc \
+ --set PATH ${lib.makeBinPath [mpv yt-dlp ytcc]}
+ '';
+}