nixpkgs/pkgs/by-name/co/copycat/package.nix
Masum Reza e13831335f
treewide: stdenv.is -> stdenv.hostPlatform.is (#356363)
* treewide: stdenv.is -> stdenv.hostPlatform.is

* treewide: nixfmt due to ci error
2024-11-17 16:11:54 +05:30

34 lines
750 B
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "ccat";
version = "002";
src = fetchFromGitHub {
owner = "DeeKahy";
repo = "CopyCat";
rev = "refs/tags/${version}";
hash = "sha256-0pqC6fxuvqOPuO10Em63tFguc3VJNnniPCHM6TcFDN0=";
};
cargoHash = "sha256-oNX1MUpOjRG02FHOU7zpktLAYKu/1+R2d96jC/VA0co=";
buildInputs = lib.optionals (stdenv.hostPlatform.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";
};
}