about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/comments/comments.nix
blob: a46f1ebe6d4e90e5406bc9bb3a789786a0a8ceb0 (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,
  makeWrapper,
  less,
  fmt,
}:
rustPlatform.buildRustPackage {
  pname = "comments";
  version = "0.1.0";

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

  nativeBuildInputs = [
    makeWrapper
  ];

  postInstall = ''
    wrapProgram $out/bin/comments \
      --set PATH ${lib.makeBinPath [less fmt]}
  '';
}