depot/pkgs/by-name/un/unison-fsmonitor/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

37 lines
889 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "unison-fsmonitor";
version = "0.3.4";
src = fetchFromGitHub {
owner = "autozimu";
repo = "unison-fsmonitor";
rev = "v${version}";
hash = "sha256-U/KMKYqYVSeYBmW+PnXtvjnyUTjTJgtpwy1GPefqJOk=";
};
cargoHash = "sha256-eKRayFU3xq2uo6YeFqcTPLInZYlympH6Z01vOCVsVqQ=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
];
checkFlags = [
# accesses /usr/bin/env
"--skip=test_follow_link"
];
meta = {
homepage = "https://github.com/autozimu/unison-fsmonitor";
description = "fsmonitor implementation for darwin";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nevivurn ];
platforms = lib.platforms.darwin;
mainProgram = "unison-fsmonitor";
};
}