about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/yt/yts.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nixpkgs/pkgs/yt/yts.nix')
-rw-r--r--sys/nixpkgs/pkgs/yt/yts.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/nixpkgs/pkgs/yt/yts.nix b/sys/nixpkgs/pkgs/yt/yts.nix
new file mode 100644
index 00000000..fa00dc48
--- /dev/null
+++ b/sys/nixpkgs/pkgs/yt/yts.nix
@@ -0,0 +1,25 @@
+{
+  lib,
+  rustPlatform,
+  ytcc,
+  makeWrapper,
+}:
+rustPlatform.buildRustPackage {
+  pname = "yts";
+  version = "0.1.0";
+
+  src = ./.;
+  cargoHash = "sha256-vtf58M+qTEbgqSMFgaB67mhI4cEXtlQFMTbgmWFoxX4=";
+
+  buildNoDefaultFeatures = true;
+  buildFeatures = ["yts"];
+
+  nativeBuildInputs = [
+    makeWrapper
+  ];
+
+  postInstall = ''
+    wrapProgram $out/bin/yts \
+      --set PATH ${lib.makeBinPath [ytcc]}
+  '';
+}