Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 13213174fc2e
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8305cce21076
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Oct 15, 2020

  1. clipcat: init at 0.4.19

    xrelkd committed Oct 15, 2020
    Copy the full SHA
    7ee6eb7 View commit details

Commits on Oct 29, 2020

  1. Merge pull request #100638 from xrelkd/add/clipcat

    clipcat: init at 0.4.19
    marsam authored Oct 29, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8305cce View commit details
Showing with 66 additions and 0 deletions.
  1. +64 −0 pkgs/applications/misc/clipcat/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
64 changes: 64 additions & 0 deletions pkgs/applications/misc/clipcat/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{ lib, fetchFromGitHub, installShellFiles, rustPlatform, rustfmt, xorg
, pkgconfig, llvmPackages, clang, protobuf, python3 }:

rustPlatform.buildRustPackage rec {
pname = "clipcat";
version = "0.4.19";

src = fetchFromGitHub {
owner = "xrelkd";
repo = pname;
rev = "v${version}";
sha256 = "1lhnm521qqy3aw2iyk1dv4yc5ms0c5x5iipx96bz6v6y0cnmf4kw";
};

cargoSha256 = "04iflyvz8g53z658rkxafiyi2m9kzxwl3p1xgkjq7vacmz5jk15c";

LIBCLANG_PATH = "${llvmPackages.libclang}/lib";

# needed for internal protobuf c wrapper library
PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include";

nativeBuildInputs = [
pkgconfig

clang
llvmPackages.libclang

rustfmt
protobuf

python3

installShellFiles
];
buildInputs = [ xorg.libxcb ];

cargoBuildFlags = [ "--features=all" ];

postInstall = ''
installShellCompletion --bash --name clipcatd completions/bash-completion/completions/clipcatd
installShellCompletion --fish --name clipcatd.fish completions/fish/completions/clipcatd.fish
installShellCompletion --zsh --name _clipcatd completions/zsh/site-functions/_clipcatd
installShellCompletion --bash --name clipcatctl completions/bash-completion/completions/clipcatctl
installShellCompletion --fish --name clipcatctl.fish completions/fish/completions/clipcatctl.fish
installShellCompletion --zsh --name _clipcatctl completions/zsh/site-functions/_clipcatctl
installShellCompletion --bash --name clipcat-menu completions/bash-completion/completions/clipcat-menu
installShellCompletion --fish --name clipcat-menu.fish completions/fish/completions/clipcat-menu.fish
installShellCompletion --zsh --name _clipcat-menu completions/zsh/site-functions/_clipcat-menu
installShellCompletion --bash --name clipcat-notify completions/bash-completion/completions/clipcat-notify
installShellCompletion --fish --name clipcat-notify.fish completions/fish/completions/clipcat-notify.fish
installShellCompletion --zsh --name _clipcat-notify completions/zsh/site-functions/_clipcat-notify
'';

meta = with lib; {
description = "Clipboard Manager written in Rust Programming Language";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ xrelkd ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -20195,6 +20195,8 @@ in

clipgrab = libsForQt514.callPackage ../applications/video/clipgrab { };

clipcat = callPackage ../applications/misc/clipcat { };

clipmenu = callPackage ../applications/misc/clipmenu { };

clipit = callPackage ../applications/misc/clipit { };