about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/yt/yts.nix
blob: e70b768005f1829a15e660baf8066e8ace31e77c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 \
      --prefix PATH : ${lib.makeBinPath [ytcc]}
  '';
}