about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/yt/yts.nix
blob: 9a8b172e266e9d3734c19d397e0941047fcd59ca (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
26
27
{
  lib,
  rustPlatform,
  ytcc,
  makeWrapper,
}:
rustPlatform.buildRustPackage {
  pname = "yts";
  version = "0.1.0";

  src = ./.;
  cargoLock = {
    lockFile = ./Cargo.lock;
  };

  buildNoDefaultFeatures = true;
  buildFeatures = ["yts"];

  nativeBuildInputs = [
    makeWrapper
  ];

  postInstall = ''
    wrapProgram $out/bin/yts \
      --prefix PATH : ${lib.makeBinPath [ytcc]}
  '';
}