-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux-enable-ir-emitter: init at 6.0.5
Also added patch from EmixamPP/linux-enable-ir-emitter#199.
- Loading branch information
Showing
2 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/meson.build b/meson.build | ||
index fbf1e30..da7698d 100644 | ||
--- a/meson.build | ||
+++ b/meson.build | ||
@@ -39,7 +39,7 @@ spdlog_dep = dependency('spdlog', include_type: 'system') | ||
############ | ||
# Variable # | ||
############ | ||
-sysconf_dir = '/' / get_option('sysconfdir') / meson.project_name() | ||
+sysconf_dir = get_option('sysconfdir') / meson.project_name() | ||
log_dir = get_option('localstatedir') / 'log' / meson.project_name() | ||
cfg_data = configuration_data( | ||
{ | ||
@@ -80,12 +80,12 @@ install_data( | ||
if get_option('boot_service') == 'systemd' | ||
install_data( | ||
'boot_service/systemd/linux-enable-ir-emitter.service', | ||
- install_dir: '/' / get_option('sysconfdir') / 'systemd/system', | ||
+ install_dir: get_option('sysconfdir') / 'systemd/system', | ||
) | ||
elif get_option('boot_service') == 'openrc' | ||
install_data( | ||
'boot_service/openrc/linux-enable-ir-emitter', | ||
- install_dir: '/' / get_option('sysconfdir') / 'init.d', | ||
+ install_dir: get_option('sysconfdir') / 'init.d', | ||
) | ||
endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
stdenv, | ||
lib, | ||
makeWrapper, | ||
fetchFromGitHub, | ||
meson, | ||
ninja, | ||
pkg-config, | ||
argparse, | ||
gtk3, | ||
opencv, | ||
spdlog, | ||
usbutils, | ||
yaml-cpp, | ||
}: | ||
stdenv.mkDerivation rec { | ||
pname = "linux-enable-ir-emitter"; | ||
version = "6.0.6"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "EmixamPP"; | ||
repo = "linux-enable-ir-emitter"; | ||
rev = version; | ||
hash = "sha256-zQRIHPcinJsCfy55sVPJT4NM2PS93zBfuRsEhNqA+rc="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
makeWrapper | ||
meson | ||
ninja | ||
pkg-config | ||
]; | ||
|
||
buildInputs = [ | ||
argparse | ||
gtk3 | ||
spdlog | ||
usbutils | ||
yaml-cpp | ||
(opencv.override { enableGtk3 = true; }) | ||
]; | ||
|
||
meta = { | ||
description = "Provides support for infrared cameras that are not directly enabled out-of-the box"; | ||
homepage = "https://github.com/EmixamPP/linux-enable-ir-emitter"; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ fufexan ]; | ||
mainProgram = "linux-enable-ir-emitter"; | ||
platforms = lib.platforms.linux; | ||
}; | ||
} |