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
55
pkgs/tools/misc/ckb-next/default.nix
Normal file
55
pkgs/tools/misc/ckb-next/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ lib, mkDerivation, fetchFromGitHub, substituteAll, udev, stdenv
|
||||
, pkg-config, qtbase, cmake, zlib, kmod, libXdmcp, qttools, qtx11extras, libdbusmenu
|
||||
, withPulseaudio ? stdenv.isLinux, libpulseaudio
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
version = "0.4.4";
|
||||
pname = "ckb-next";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ckb-next";
|
||||
repo = "ckb-next";
|
||||
rev = "v${version}";
|
||||
sha256 = "1fgvh2hsrm8vqbqq9g45skhyyrhhka4d8ngmyldkldak1fgmrvb7";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
udev
|
||||
qtbase
|
||||
zlib
|
||||
libXdmcp
|
||||
qttools
|
||||
qtx11extras
|
||||
libdbusmenu
|
||||
] ++ lib.optional withPulseaudio libpulseaudio;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
cmake
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DINSTALL_DIR_ANIMATIONS=libexec"
|
||||
"-DUDEV_RULE_DIRECTORY=lib/udev/rules.d"
|
||||
"-DFORCE_INIT_SYSTEM=systemd"
|
||||
"-DDISABLE_UPDATER=1"
|
||||
];
|
||||
|
||||
patches = [
|
||||
./install-dirs.patch
|
||||
(substituteAll {
|
||||
name = "ckb-next-modprobe.patch";
|
||||
src = ./modprobe.patch;
|
||||
inherit kmod;
|
||||
})
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Driver and configuration tool for Corsair keyboards and mice";
|
||||
homepage = "https://github.com/ckb-next/ckb-next";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ kierdavis ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue