nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 35 lines 836 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 makeWrapper, 6 watchman, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "rs-git-fsmonitor"; 11 version = "0.2.0"; 12 13 src = fetchFromGitHub { 14 owner = "jgavris"; 15 repo = "rs-git-fsmonitor"; 16 tag = "v${version}"; 17 hash = "sha256-+5nR+/09HmFk3mq2B8NTeBT50aBG85yXEdeO6BhStVw="; 18 }; 19 20 cargoHash = "sha256-WkqJSbtaJxaagJMsdFiVozi1SkrfxXyM9bdZeimwJag="; 21 22 nativeBuildInputs = [ makeWrapper ]; 23 24 postFixup = '' 25 wrapProgram $out/bin/rs-git-fsmonitor --prefix PATH ":" "${lib.makeBinPath [ watchman ]}" 26 ''; 27 28 meta = { 29 description = "Fast git core.fsmonitor hook written in Rust"; 30 homepage = "https://github.com/jgavris/rs-git-fsmonitor"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ nilscc ]; 33 mainProgram = "rs-git-fsmonitor"; 34 }; 35}