diff options
Diffstat (limited to 'sys/nixpkgs/pkgs/yt/yts.nix')
-rw-r--r-- | sys/nixpkgs/pkgs/yt/yts.nix | 25 |
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]} + ''; +} |