Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / version-management / rs-git-fsmonitor / default.nix
blobb369e5db05b1c9e923ec548dc7f94b42c2c31fa0
1 { lib
2 , fetchFromGitHub
3 , rustPlatform
4 , makeWrapper
5 , watchman
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "rs-git-fsmonitor";
10   version = "0.1.3";
12   src = fetchFromGitHub {
13     owner = "jgavris";
14     repo = pname;
15     rev = "v${version}";
16     sha256 = "021vdk5i7yyrnh4apn0gnsh6ycnx15wm3g2jrfsg7fycnq8167wc";
17   };
19   cargoSha256 = "0hx5nhxci6p0gjjn1f3vpfykq0f7hdvhlv8898vrv0lh5r9hybsn";
21   nativeBuildInputs = [ makeWrapper ];
23   fixupPhase = ''
24     wrapProgram $out/bin/rs-git-fsmonitor --prefix PATH ":" "${lib.makeBinPath [ watchman ]}" ;
25   '';
27   meta = with lib; {
28     description = "A fast git core.fsmonitor hook written in Rust";
29     homepage = "https://github.com/jgavris/rs-git-fsmonitor";
30     license = licenses.mit;
31     maintainers = [ ];
32   };