Merge master into staging-next

This commit is contained in:
github-actions[bot]
2024-06-03 06:01:06 +00:00
committed by GitHub
9 changed files with 115 additions and 27 deletions
+6
View File
@@ -8387,6 +8387,12 @@
githubId = 896431;
name = "Chris Hodapp";
};
hogcycle = {
email = "nate@gysli.ng";
github = "hogcycle";
githubId = 57007241;
name = "hogcycle";
};
holgerpeters = {
name = "Holger Peters";
email = "holger.peters@posteo.de";
+1 -1
View File
@@ -110,7 +110,7 @@ in
users.groups."${cfg.group}" = { };
systemd.tmpfiles.rules = [
"d '${cfg.stateDir}' - ${config.users.users.gollum.name} ${config.users.groups.gollum.name} - -"
"d '${cfg.stateDir}' - ${cfg.user} ${cfg.group} - -"
];
systemd.services.gollum = {
@@ -33,7 +33,7 @@ stdenvNoCC.mkDerivation {
name = "Session";
desktopName = "Session";
comment = "Onion routing based messenger";
exec = "${appimage}/bin/session-desktop-${version}";
exec = "session-desktop";
icon = "${appimage-contents}/session-desktop.png";
terminal = false;
type = "Application";
+43 -14
View File
@@ -1,22 +1,39 @@
{ stdenv, buildPythonApplication, fetchFromGitHub, isPyPy, lib
, defusedxml, future, ujson, packaging, psutil, setuptools
# Optional dependencies:
, bottle, pysnmp
, hddtemp
, netifaces # IP module
, py-cpuinfo
{
stdenv,
buildPythonApplication,
fetchFromGitHub,
isPyPy,
lib,
defusedxml,
future,
ujson,
packaging,
psutil,
setuptools,
pydantic,
# Optional dependencies:
fastapi,
jinja2,
orjson,
pysnmp,
hddtemp,
netifaces, # IP module
py-cpuinfo,
uvicorn,
requests,
prometheus-client,
}:
buildPythonApplication rec {
pname = "glances";
version = "4.0.6";
version = "4.0.7";
disabled = isPyPy;
src = fetchFromGitHub {
owner = "nicolargo";
repo = "glances";
rev = "refs/tags/v${version}";
hash = "sha256-FkAMsfr/bO7Chemw4hhVt2SKkSyPLECNVuOsOxKWsGE=";
hash = "sha256-Vfsco8Wno57aPM7PtwCc/gI+6FnAG3H/t5OAUngDU5o=";
};
# On Darwin this package segfaults due to mismatch of pure and impure
@@ -24,7 +41,9 @@ buildPythonApplication rec {
# scripts a workaround below is still required.
# Relevant: https://github.com/NixOS/nixpkgs/issues/24693
makeWrapperArgs = lib.optionals stdenv.isDarwin [
"--set" "DYLD_FRAMEWORK_PATH" "/System/Library/Frameworks"
"--set"
"DYLD_FRAMEWORK_PATH"
"/System/Library/Frameworks"
];
doCheck = true;
@@ -33,7 +52,6 @@ buildPythonApplication rec {
'';
propagatedBuildInputs = [
bottle
defusedxml
future
ujson
@@ -43,14 +61,25 @@ buildPythonApplication rec {
pysnmp
setuptools
py-cpuinfo
pydantic
fastapi
uvicorn
requests
jinja2
orjson
prometheus-client
] ++ lib.optional stdenv.isLinux hddtemp;
meta = with lib; {
meta = {
homepage = "https://nicolargo.github.io/glances/";
description = "Cross-platform curses-based monitoring tool";
mainProgram = "glances";
changelog = "https://github.com/nicolargo/glances/blob/v${version}/NEWS.rst";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ jonringer primeos koral ];
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [
jonringer
primeos
koral
];
};
}
+3 -3
View File
@@ -10,7 +10,7 @@
, nix-output-monitor
}:
let
version = "3.5.15";
version = "3.5.16";
runtimeDeps = [ nvd nix-output-monitor ];
in
rustPlatform.buildRustPackage {
@@ -21,7 +21,7 @@ rustPlatform.buildRustPackage {
owner = "viperML";
repo = "nh";
rev = "refs/tags/v${version}";
hash = "sha256-1mE4ZXGAMZl2Mufr47y+2UMDHBelqsvChaCsQDK3m70=";
hash = "sha256-uAoD6tW1lSMt5X6hzouZ1qWzImmg4VAMy663BLcOALs=";
};
strictDeps = true;
@@ -47,7 +47,7 @@ rustPlatform.buildRustPackage {
--prefix PATH : ${lib.makeBinPath runtimeDeps}
'';
cargoHash = "sha256-5BazSJGsafSl0eE7GOWw2SrVgC3k1tlrLiIFIpC51/o=";
cargoHash = "sha256-610gS1T7i5rBEWeWzolRz/mUTGw5EJf1B68CWc4gkm4=";
passthru.updateScript = nix-update-script { };
+28
View File
@@ -0,0 +1,28 @@
{ lib
, fetchFromGitHub
, buildGoModule
}:
let
version = "0.5.0";
in
buildGoModule {
pname = "yoink";
inherit version;
src = fetchFromGitHub {
owner = "MrMarble";
repo = "yoink";
rev = "v${version}";
hash = "sha256-9ftlAECywF4khH279h2qcSvKRDQX2I7GDQ7EYcEybL0=";
};
vendorHash = "sha256-cnfh2D/k4JP9BNlI+6FVLBFyk5XMIYG/DotUdAZaY0Q=";
meta = {
homepage = "https://github.com/MrMarble/yoink";
description = "Automatically download freeleech torrents";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hogcycle ];
};
}
+6 -6
View File
@@ -2,10 +2,10 @@
let
major = "2023";
minor = "06";
patch.seriousproton = "17";
patch.emptyepsilon = "17";
major = "2024";
minor = "05";
patch.seriousproton = "16";
patch.emptyepsilon = "16";
version.seriousproton = "${major}.${minor}.${patch.seriousproton}";
version.emptyepsilon = "${major}.${minor}.${patch.emptyepsilon}";
@@ -26,7 +26,7 @@ let
owner = "daid";
repo = "SeriousProton";
rev = "EE-${version.seriousproton}";
sha256 = "sha256-5ifYb5dX8ihQmJB1RHyzMsZJeXZ+m27JmA+W+XA/XwI=";
sha256 = "sha256-0gCwWvx7ceJG3VmVVufRkwreuHn41pl7jHsJXzNwqaE=";
};
nativeBuildInputs = [ cmake ];
@@ -56,7 +56,7 @@ stdenv.mkDerivation {
owner = "daid";
repo = "EmptyEpsilon";
rev = "EE-${version.emptyepsilon}";
sha256 = "sha256-zuXbCBlv6URndbB0aA+3bli0cSeUBf3LT/7/jcPITnc=";
sha256 = "sha256-pLnyzahGEPb2cEwH89RE5Jq8UHIoDWXatmDWdeZ+rqo=";
};
nativeBuildInputs = [ cmake ];
+8 -2
View File
@@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, nix-update-script }:
{ lib, buildGoModule, fetchFromGitHub, nix-update-script, testers, callPackage, ejson2env }:
buildGoModule rec {
pname = "ejson2env";
@@ -19,7 +19,13 @@ buildGoModule rec {
"-X main.version=${version}"
];
passthru.updateScript = nix-update-script { };
passthru = {
updateScript = nix-update-script { };
tests = {
version = testers.testVersion { package = ejson2env; };
decryption = callPackage ./test-decryption.nix {};
};
};
meta = with lib; {
description = "Decrypt EJSON secrets and export them as environment variables";
@@ -0,0 +1,19 @@
{ ejson2env, runCommand }:
runCommand "check-ejson2env.sh" {
nativeBuildInputs = [ ejson2env ];
} ''
cat > $TMP/abc.ejson <<EOF
{
"_public_key": "349a0e027725db0693cf0505344c5104807d38fb398cd4597029dccc8d0d8711",
"environment": {
"foo": "EJ[1:7oqIDkyXLro12rcrg7/psjK5Qcfuw5FRquvfBaRUBic=:OTtncVl0wT4U6UWdxoaCGBRnM2WzGnV3:1FiIgHYT5U6MjFN8IUU83T1fzQ==]"
}
}
EOF
response="$(echo "ff34961809e9d7a0ae20b9d09e5d8630c8d4924cef19cdb5385916b9be019954" | ejson2env --key-from-stdin $TMP/abc.ejson)"
if [[ "$response" != "export foo=bar" ]]; then
echo "test file not decrypted correctly"
exit 1
fi
touch $out
''