From 368cb6b0d25db2ae23be42ad51584de059997e51 Mon Sep 17 00:00:00 2001
From: Benedikt Peetz <benedikt.peetz@b-peetz.de>
Date: Mon, 20 May 2024 16:10:21 +0200
Subject: refactor(sys): Modularize and move to `modules/system` or `pkgs`

---
 pkgs/sources/yt/yt.nix | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 pkgs/sources/yt/yt.nix

(limited to 'pkgs/sources/yt/yt.nix')

diff --git a/pkgs/sources/yt/yt.nix b/pkgs/sources/yt/yt.nix
new file mode 100644
index 00000000..aaa971c3
--- /dev/null
+++ b/pkgs/sources/yt/yt.nix
@@ -0,0 +1,29 @@
+{
+  lib,
+  rustPlatform,
+  ytcc,
+  yt-dlp,
+  mpv,
+  makeWrapper,
+}:
+rustPlatform.buildRustPackage {
+  pname = "yt";
+  version = "0.1.0";
+
+  src = ./.;
+  cargoLock = {
+    lockFile = ./Cargo.lock;
+  };
+
+  buildNoDefaultFeatures = true;
+  buildFeatures = ["yt"];
+
+  nativeBuildInputs = [
+    makeWrapper
+  ];
+
+  postInstall = ''
+    wrapProgram $out/bin/yt \
+      --prefix PATH : ${lib.makeBinPath [mpv yt-dlp ytcc]}
+  '';
+}
-- 
cgit 1.4.1