Skip to content

Commit

Permalink
linux-enable-ir-emitter: init at 6.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Nov 3, 2024
1 parent 4b616a8 commit f4e3672
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/by-name/li/linux-enable-ir-emitter/install.patch
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

51 changes: 51 additions & 0 deletions pkgs/by-name/li/linux-enable-ir-emitter/package.nix
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;
};
}

0 comments on commit f4e3672

Please sign in to comment.