about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/comments/comments.nix
blob: e8a33bff079314787886d9a332e74c3928ce6ac0 (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,
  coreutils,
}:
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 coreutils]}
  '';
}