Merge branch 'staging-next' into staging
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ddcutil";
|
||||
version = "1.0.1";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rockowitz";
|
||||
repo = "ddcutil";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-F/tKW81bAyYtwpxhl5XC8YyMB+6S0XmqqigwJY2WFDU=";
|
||||
sha256 = "0wv8a8zjahzmi4qx0lc24mwyi3jklj1yxqq26fwklmfh5dv1y8yc";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
||||
@@ -1,32 +1,30 @@
|
||||
diff --git a/src/app_sysenv/query_sysenv_modules.c b/src/app_sysenv/query_sysenv_modules.c
|
||||
index 59df64f1..fb244dd0 100644
|
||||
--- a/src/app_sysenv/query_sysenv_modules.c
|
||||
+++ b/src/app_sysenv/query_sysenv_modules.c
|
||||
@@ -50,7 +50,9 @@ bool is_module_loadable(char * module_name, int depth) {
|
||||
g_snprintf(module_name_ko, 100, "%s.ko", module_name);
|
||||
|
||||
char dirname[PATH_MAX];
|
||||
- g_snprintf(dirname, PATH_MAX, "/lib/modules/%s/kernel/drivers/i2c", utsbuf.release);
|
||||
+ g_snprintf(dirname, PATH_MAX,
|
||||
+ "/run/booted-system/kernel-modules/lib/modules/%s/kernel/drivers/i2c",
|
||||
+ utsbuf.release);
|
||||
|
||||
struct dirent *dent;
|
||||
DIR *d;
|
||||
diff --git a/src/util/linux_util.c b/src/util/linux_util.c
|
||||
index 5eb8491c..3a129ccf 100644
|
||||
--- a/src/util/linux_util.c
|
||||
+++ b/src/util/linux_util.c
|
||||
@@ -29,8 +29,10 @@ bool is_module_builtin(char * module_name)
|
||||
int rc = uname(&utsbuf);
|
||||
assert(rc == 0);
|
||||
@@ -125,6 +125,7 @@
|
||||
"lib64",
|
||||
"lib32",
|
||||
"usr/lib", // needed for arch?
|
||||
+ "run/booted-system/kernel-modules/lib", // NixOS
|
||||
NULL};
|
||||
int result = -1;
|
||||
int ndx = 0;
|
||||
@@ -204,14 +205,15 @@
|
||||
if (debug)
|
||||
printf("(%s) machine: %s", __func__, utsbuf.machine);
|
||||
|
||||
- char modules_builtin_fn[100];
|
||||
- snprintf(modules_builtin_fn, 100, "/lib/modules/%s/modules.builtin", utsbuf.release);
|
||||
+ char modules_builtin_fn[PATH_MAX];
|
||||
+ snprintf(modules_builtin_fn, PATH_MAX,
|
||||
+ "/run/booted-system/kernel-modules/lib/modules/%s/modules.builtin",
|
||||
+ utsbuf.release);
|
||||
- char * libdirs[3];
|
||||
+ char * libdirs[4];
|
||||
libdirs[0] = "lib";
|
||||
+ libdirs[1] = "run/booted-system/kernel-modules/lib";
|
||||
if (streq(utsbuf.machine, "amd_64")){
|
||||
- libdirs[1] = "lib64";
|
||||
- libdirs[2] = NULL;
|
||||
+ libdirs[2] = "lib64";
|
||||
+ libdirs[3] = NULL;
|
||||
}
|
||||
else
|
||||
- libdirs[1] = NULL;
|
||||
+ libdirs[2] = NULL;
|
||||
|
||||
char ko_name[40];
|
||||
snprintf(ko_name, 40, "%s.ko", module_name);
|
||||
int libsndx = 0;
|
||||
bool found = false;
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
{ lib, appimageTools, fetchurl }: let
|
||||
pname = "flexoptix-app";
|
||||
version = "5.9.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
name = "${name}.AppImage";
|
||||
url = "https://flexbox.reconfigure.me/download/electron/linux/x64/FLEXOPTIX%20App.${version}.AppImage";
|
||||
sha256 = "0gbqaj9b11mxx0knmmh2d5863kaslbb3r6c4h8rjhg8qy4cws7hj";
|
||||
};
|
||||
|
||||
udevRules = fetchurl {
|
||||
url = "https://www.flexoptix.net/skin/udev_rules/99-tprogrammer.rules";
|
||||
sha256 = "0mr1bhgvavq1ax4206z1vr2y64s3r676w9jjl9ysziklbrsvk5rr";
|
||||
};
|
||||
|
||||
appimageContents = appimageTools.extractType2 {
|
||||
inherit name src;
|
||||
};
|
||||
|
||||
in appimageTools.wrapType2 {
|
||||
inherit name src;
|
||||
|
||||
multiPkgs = null; # no 32bit needed
|
||||
extraPkgs = { pkgs, ... }@args: [
|
||||
pkgs.hidapi
|
||||
] ++ appimageTools.defaultFhsEnvArgs.multiPkgs args;
|
||||
|
||||
extraInstallCommands = ''
|
||||
mv $out/bin/{${name},${pname}}
|
||||
install -Dm444 ${appimageContents}/flexoptix-app.desktop -t $out/share/applications
|
||||
install -Dm444 ${appimageContents}/flexoptix-app.png -t $out/share/pixmaps
|
||||
substituteInPlace $out/share/applications/flexoptix-app.desktop \
|
||||
--replace 'Exec=AppRun' "Exec=$out/bin/${pname}"
|
||||
mkdir -p $out/lib/udev/rules.d
|
||||
ln -s ${udevRules} $out/lib/udev/rules.d/99-tprogrammer.rules
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Configure FLEXOPTIX Universal Transcievers in seconds";
|
||||
homepage = "https://www.flexoptix.net";
|
||||
changelog = "https://www.flexoptix.net/en/flexoptix-app/?os=linux#flexapp__modal__changelog";
|
||||
license = lib.licenses.unfree;
|
||||
maintainers = with lib.maintainers; [ das_j ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
@@ -1,36 +1,27 @@
|
||||
{ lib, stdenv, fetchurl, pkg-config, ncurses, glib, libmaxminddb, fetchpatch }:
|
||||
{ lib, stdenv, fetchurl, ncurses, gettext, openssl, withGeolocation ? true, libmaxminddb }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.4";
|
||||
version = "1.4.6";
|
||||
pname = "goaccess";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://tar.goaccess.io/goaccess-${version}.tar.gz";
|
||||
sha256 = "1gkpjg39f3afdwm9128jqjsfap07p8s027czzlnxfmi5hpzvkyz8";
|
||||
sha256 = "1l3j3i4vb7ni7i047qvi9a3hs43ym24r6hfcnqsbhgrb731jf3qx";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/allinurl/goaccess/commit/514618cdd69453497fbf67913ccb37a0a0b07391.patch";
|
||||
sha256 = "11lp7mabfl6ibgzsd9nw10k2xvcm0hrimrwidl06r8dqn2jzjxf6";
|
||||
})
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-geoip=mmdb"
|
||||
"--enable-utf8"
|
||||
];
|
||||
"--with-openssl"
|
||||
] ++ lib.optionals withGeolocation [ "--enable-geoip=mmdb" ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [
|
||||
libmaxminddb
|
||||
ncurses
|
||||
glib
|
||||
];
|
||||
buildInputs = [ ncurses openssl ]
|
||||
++ lib.optionals withGeolocation [ libmaxminddb ]
|
||||
++ lib.optionals stdenv.isDarwin [ gettext ];
|
||||
|
||||
meta = {
|
||||
description = "Real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems";
|
||||
homepage = "https://goaccess.io";
|
||||
changelog = "https://github.com/allinurl/goaccess/raw/v${version}/ChangeLog";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||
maintainers = with lib.maintainers; [ ederoyd46 ];
|
||||
|
||||
@@ -1,20 +1,23 @@
|
||||
{ lib, rustPlatform, fetchFromGitHub }:
|
||||
{ lib, rustPlatform, fetchFromGitHub, shared-mime-info }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "handlr";
|
||||
version = "0.5.0";
|
||||
version = "0.6.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "chmln";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1f4gmlqzgw1r8n0w9dr9lpsn94f2hlnak9bbq5xgf6jwgc9mwqzg";
|
||||
sha256 = "0mxkirsicagvfyihcb06g2bsz5h0zp7xc87vldp4amgddzaxhpbg";
|
||||
};
|
||||
|
||||
cargoSha256 = "16d4dywwkgvvxw6ninrx87rqhx0whdq3yy01m27qjy4gz6z6ad8p";
|
||||
cargoSha256 = "11glh6f0cjrq76212h80na2rgwpzjmk0j78y3i98nv203rkrczid";
|
||||
|
||||
# Most tests fail (at least some due to directory permissions)
|
||||
doCheck = false;
|
||||
nativeBuildInputs = [ shared-mime-info ];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$TEMPDIR
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Alternative to xdg-open to manage default applications with ease";
|
||||
|
||||
Reference in New Issue
Block a user