push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
From 47f163f6bcd1d66bebc49d96abcf46853a0708fb Mon Sep 17 00:00:00 2001
From: wxt <3264117476@qq.com>
Date: Tue, 22 Oct 2024 07:48:34 +0800
Subject: [PATCH] fix build
---
src/helpers.c | 1 +
src/helpers.h | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/helpers.c b/src/helpers.c
index c7bc4de..00e6098 100644
--- a/src/helpers.c
+++ b/src/helpers.c
@@ -9,6 +9,7 @@
#include <errno.h> // errno
#include <libgen.h> // dirname
+light_loglevel_t light_loglevel;
bool light_file_read_uint64(char const *filename, uint64_t *val)
{
diff --git a/src/helpers.h b/src/helpers.h
index f73714b..4a92753 100644
--- a/src/helpers.h
+++ b/src/helpers.h
@@ -21,7 +21,7 @@ typedef enum {
LIGHT_NOTE_LEVEL
} light_loglevel_t;
-light_loglevel_t light_loglevel;
+extern light_loglevel_t light_loglevel;
#define LIGHT_LOG(lvl, fp, fmt, args...)\
if(light_loglevel >= lvl)\
--
2.46.1

View File

@@ -0,0 +1,52 @@
{
lib,
stdenv,
fetchFromGitLab,
autoreconfHook,
coreutils,
udevCheckHook,
}:
stdenv.mkDerivation {
version = "1.2.2";
pname = "light";
src = fetchFromGitLab {
owner = "dpeukert";
repo = "light";
rev = "2a54078cbe3814105ee4f565f451b1b5947fbde0";
hash = "sha256-OmHdVJvBcBjJiPs45JqOHxFoJYvKIEIpt9pFhBz74Kg=";
};
configureFlags = [ "--with-udev" ];
nativeBuildInputs = [
autoreconfHook
udevCheckHook
];
patches = [
./0001-define-light-loglevel-as-extern.patch
];
# ensure udev rules can find the commands used
postPatch = ''
substituteInPlace 90-backlight.rules \
--replace-fail '/bin/chgrp' '${coreutils}/bin/chgrp' \
--replace-fail '/bin/chmod' '${coreutils}/bin/chmod'
'';
doInstallCheck = true;
meta = {
description = "GNU/Linux application to control backlights";
homepage = "https://gitlab.com/dpeukert/light";
license = lib.licenses.gpl3Only;
mainProgram = "light";
maintainers = with lib.maintainers; [
puffnfresh
dtzWill
];
platforms = lib.platforms.linux;
};
}