about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/yt/yts.nix
blob: 88cb3b0b0cdc32415ee30028a89bcac1e6928662 (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]}
  '';
}