uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
53
pkgs/applications/misc/clipcat/default.nix
Normal file
53
pkgs/applications/misc/clipcat/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib, fetchFromGitHub, installShellFiles, rustPlatform, rustfmt, xorg
|
||||
, pkg-config, llvmPackages, clang, protobuf, python3 }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "clipcat";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xrelkd";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0rxl3ksjinw07q3p2vjqg80k3c6wx2q7pzpf2344zyfb4gkqzx1c";
|
||||
};
|
||||
|
||||
cargoSha256 = "1n4il3l59m2a6ca54vfaivzg25abf8s4w5kpd5q51p13624iz0kb";
|
||||
|
||||
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
||||
|
||||
# needed for internal protobuf c wrapper library
|
||||
PROTOC = "${protobuf}/bin/protoc";
|
||||
PROTOC_INCLUDE = "${protobuf}/include";
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
|
||||
clang
|
||||
llvmPackages.libclang
|
||||
|
||||
rustfmt
|
||||
protobuf
|
||||
|
||||
python3
|
||||
|
||||
installShellFiles
|
||||
];
|
||||
buildInputs = [ xorg.libxcb ];
|
||||
|
||||
buildFeatures = [ "all" ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --bash completions/bash-completion/completions/*
|
||||
installShellCompletion --fish completions/fish/completions/*
|
||||
installShellCompletion --zsh completions/zsh/site-functions/*
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Clipboard Manager written in Rust Programming Language";
|
||||
homepage = "https://github.com/xrelkd/clipcat";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ xrelkd ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue