treewide: use `addBinToPathHook`, minor cleanups (#379187)
[NixPkgs.git] / pkgs / by-name / co / copycat / package.nix
blob16eec28ab4fd810065d00738d8e5c457927811a9
2   lib,
3   stdenv,
4   rustPlatform,
5   fetchFromGitHub,
6   darwin,
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "ccat";
11   version = "002";
13   src = fetchFromGitHub {
14     owner = "DeeKahy";
15     repo = "CopyCat";
16     tag = version;
17     hash = "sha256-0pqC6fxuvqOPuO10Em63tFguc3VJNnniPCHM6TcFDN0=";
18   };
20   cargoHash = "sha256-oNX1MUpOjRG02FHOU7zpktLAYKu/1+R2d96jC/VA0co=";
22   buildInputs = lib.optionals (stdenv.hostPlatform.isDarwin) [
23     darwin.apple_sdk_11_0.frameworks.AppKit
24   ];
26   meta = {
27     description = "Utility to copy project tree contents to clipboard";
28     homepage = "https://github.com/DeeKahy/CopyCat";
29     license = lib.licenses.mit;
30     maintainers = [ lib.maintainers.deekahy ];
31     mainProgram = "ccat";
32   };