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
61
pkgs/applications/misc/clight/default.nix
Normal file
61
pkgs/applications/misc/clight/default.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{ lib, stdenv, fetchFromGitHub
|
||||
, dbus, cmake, pkg-config, bash-completion
|
||||
, gsl, popt, clightd, systemd, libconfig, libmodule
|
||||
, withGeoclue ? true, geoclue2
|
||||
, withUpower ? true, upower }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "clight";
|
||||
version = "4.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FedeDP";
|
||||
repo = "Clight";
|
||||
rev = version;
|
||||
sha256 = "sha256-nDI5Rq1iPVkj25HRpxmS9zxNDUy+9YsSwbZnEwYt86E=";
|
||||
};
|
||||
|
||||
# dbus-1.pc has datadir=/etc
|
||||
SESSION_BUS_DIR = "${placeholder "out"}/share/dbus-1/services";
|
||||
|
||||
postPatch = ''
|
||||
sed -i "s@/usr@$out@" CMakeLists.txt
|
||||
sed -i "s@/etc@$out\0@" CMakeLists.txt
|
||||
sed -i "s@pkg_get_variable(SESSION_BUS_DIR.*@set(SESSION_BUS_DIR $SESSION_BUS_DIR)@" CMakeLists.txt
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
dbus
|
||||
cmake
|
||||
pkg-config
|
||||
bash-completion
|
||||
];
|
||||
|
||||
buildInputs = with lib; [
|
||||
gsl
|
||||
popt
|
||||
upower
|
||||
clightd
|
||||
systemd
|
||||
geoclue2
|
||||
libconfig
|
||||
libmodule
|
||||
] ++ optional withGeoclue geoclue2
|
||||
++ optional withUpower upower;
|
||||
|
||||
cmakeFlags = [
|
||||
# bash-completion.pc completionsdir=${bash-completion.out}
|
||||
"-DBASH_COMPLETIONS_DIR=${placeholder "out"}/share/bash-completions/completions"
|
||||
"-DZSH_COMPLETIONS_DIR=${placeholder "out"}/share/zsh/site-functions"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A C daemon that turns your webcam into a light sensor";
|
||||
homepage = "https://github.com/FedeDP/Clight";
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [
|
||||
eadwu
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue