depot/third_party/nixpkgs/pkgs/by-name/co/copycat/package.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

33 lines
737 B
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "ccat";
version = "001";
src = fetchFromGitHub {
owner = "DeeKahy";
repo = "CopyCat";
rev = "refs/tags/${version}";
hash = "sha256-zllxQifRMNEMa3RO5WKrwGAUf1xQg6YrQBzIHzy43F0=";
};
cargoHash = "sha256-LYVhvq5l+PCZXW+elWi3zZFxLekgPn+plo4dybbLK9g=";
buildInputs = lib.optionals (stdenv.isDarwin) [
darwin.apple_sdk_11_0.frameworks.AppKit
];
meta = {
description = "Utility to copy project tree contents to clipboard";
homepage = "https://github.com/DeeKahy/CopyCat";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.deekahy ];
mainProgram = "ccat";
};
}