Skip to content

Commit

Permalink
Merge master into staging-next
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jan 14, 2025
2 parents 4de88b4 + d6f326a commit 44e4abf
Show file tree
Hide file tree
Showing 95 changed files with 1,100 additions and 7,522 deletions.
12 changes: 12 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16554,6 +16554,18 @@
githubId = 3521180;
name = "Tom Sydney Kerckhove";
};
normalcea = {
name = "normalcea";
email = "[email protected]";
github = "normalcea";
githubId = 190049873;
keys = [
{
fingerprint = "6057 1155 7BA4 B922 66D6 2064 3DE3 BCB2 142A 8C71";
}
];
matrix = "@normalcea:matrix.org";
};
nosewings = {
name = "Nicholas Coltharp";
email = "[email protected]";
Expand Down
4 changes: 2 additions & 2 deletions nixos/modules/system/etc/etc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ in
${lib.optionalString config.system.etc.overlay.mutable ''
# These directories are usually created in initrd,
# but we need to create them here when we didn't we're called directly,
# but we need to create them here when we're called directly,
# for instance by nixos-enter
mkdir --parents /.rw-etc/upper /.rw-etc/work
chmod --recursive 0755 /.rw-etc
chmod 0755 /.rw-etc /.rw-etc/upper /.rw-etc/work
''}
tmpMetadataMount=$(TMPDIR="/run" mktemp --directory -t nixos-etc-metadata.XXXXXXXXXX)
Expand Down
1 change: 1 addition & 0 deletions nixos/tests/pleroma.nix
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ import ./make-test-python.nix (
pleroma.succeed("provision-db")
pleroma.wait_for_file("/var/lib/pleroma")
pleroma.succeed("provision-secrets")
pleroma.systemctl("restart pleroma-migrations.service")
pleroma.systemctl("restart pleroma.service")
pleroma.wait_for_unit("pleroma.service")
pleroma.succeed("provision-user")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -714,13 +714,13 @@
"vendorHash": "sha256-F78OR8EG0Vy3WVJWTOlAsIBazsSXGD6KeceYuGnBqjQ="
},
"kubectl": {
"hash": "sha256-5r8ZpifNJZ+UHys7jWVZCd6f9ylT3NBiccsCSQbNy6o=",
"hash": "sha256-UQ/xvhs7II+EGH5bKdrVC47hp5dhLqQZeqSBz06ho1s=",
"homepage": "https://registry.terraform.io/providers/gavinbunney/kubectl",
"owner": "gavinbunney",
"repo": "terraform-provider-kubectl",
"rev": "v1.18.0",
"rev": "v1.19.0",
"spdx": "MPL-2.0",
"vendorHash": "sha256-pE0WujGxCMW0/27F8aaNtyIHdsOJTwEJL+bdiHpzu7s="
"vendorHash": "sha256-FcxAh8EOvnT8r1GHu0Oj2C5Jgbr2WPwD7/vY4/qIvTA="
},
"kubernetes": {
"hash": "sha256-eSAgeN/ExP75Kbhb099t3vW0XQA2TXIhiyv1RUt4ziM=",
Expand Down
8 changes: 3 additions & 5 deletions pkgs/applications/networking/remote/freerdp/3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
stdenv,
lib,
fetchFromGitHub,
fetchpatch,
cmake,
docbook-xsl-nons,
libxslt,
Expand Down Expand Up @@ -62,20 +61,19 @@
# tries to compile and run generate_argument_docbook.c
withManPages ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,

buildPackages,
gnome,
remmina,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "freerdp";
version = "3.9.0";
version = "3.10.3";

src = fetchFromGitHub {
owner = "FreeRDP";
repo = "FreeRDP";
rev = finalAttrs.version;
hash = "sha256-oThlqUpEmhcLpMMYExMA3GbtB2+lq6oc5TRZt0eKRLA=";
hash = "sha256-qFjR1Z2GZsNpgjlbHw+o+dLCBLZQ9D9c93FFqFGM8T4=";
};

postPatch =
Expand All @@ -84,7 +82,7 @@ stdenv.mkDerivation (finalAttrs: {
# skip NIB file generation on darwin
substituteInPlace "client/Mac/CMakeLists.txt" "client/Mac/cli/CMakeLists.txt" \
--replace-fail "if (NOT IS_XCODE)" "if (FALSE)"
--replace-fail "if(NOT IS_XCODE)" "if(FALSE)"
substituteInPlace "libfreerdp/freerdp.pc.in" \
--replace-fail "Requires:" "Requires: @WINPR_PKG_CONFIG_FILENAME@"
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/office/treesheets/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

stdenv.mkDerivation rec {
pname = "treesheets";
version = "0-unstable-2024-12-22";
version = "0-unstable-2025-01-13";

src = fetchFromGitHub {
owner = "aardappel";
repo = "treesheets";
rev = "b3bf8f2763aa9efaac428107d62194582839df1b";
hash = "sha256-qY5DSFW6jnngvHCBgz9Go9Xsfo2nd7xDyZWuKSpyMMM=";
rev = "89b40de858f598975098a0436637bca8357a4a86";
hash = "sha256-kduZ+1EYxwuKAIVNBg9u32UD463gpBIjcxSj1FgvIIg=";
};

nativeBuildInputs = [
Expand Down
4 changes: 4 additions & 0 deletions pkgs/by-name/ar/archiver/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,9 @@ buildGoModule rec {
mainProgram = "arc";
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
knownVulnerabilities = [
"CVE-2024-0406"
"Package is unmaintained upstream"
];
};
}
150 changes: 101 additions & 49 deletions pkgs/by-name/au/auto-cpufreq/prevent-install-and-copy.patch
Original file line number Diff line number Diff line change
@@ -1,49 +1,101 @@
diff --git a/auto_cpufreq/bin/auto_cpufreq.py b/auto_cpufreq/bin/auto_cpufreq.py
index d9fcd37..7436a7e 100755
--- a/auto_cpufreq/bin/auto_cpufreq.py
+++ b/auto_cpufreq/bin/auto_cpufreq.py
@@ -136,20 +136,7 @@ def main(monitor, live, daemon, install, update, remove, force, config, stats, g
except KeyboardInterrupt: break
conf.notifier.stop()
elif install:
- root_check()
- if IS_INSTALLED_WITH_SNAP:
- running_daemon_check()
- gnome_power_detect_snap()
- tlp_service_detect_snap()
- bluetooth_notif_snap()
- gov_check()
- run("snapctl set daemon=enabled", shell=True)
- run("snapctl start --enable auto-cpufreq", shell=True)
- else:
- running_daemon_check()
- gov_check()
- deploy_daemon()
- deploy_complete_msg()
+ print("install is disabled in the nix package")
elif update:
root_check()
custom_dir = "/opt/auto-cpufreq/source"
@@ -187,21 +174,7 @@ def main(monitor, live, daemon, install, update, remove, force, config, stats, g
run(["auto-cpufreq", "--version"])
else: print("Aborted")
elif remove:
- root_check()
- if IS_INSTALLED_WITH_SNAP:
- run("snapctl set daemon=disabled", shell=True)
- run("snapctl stop --disable auto-cpufreq", shell=True)
- if auto_cpufreq_stats_path.exists():
- if auto_cpufreq_stats_file is not None:
- auto_cpufreq_stats_file.close()
-
- auto_cpufreq_stats_path.unlink()
- # ToDo:
- # {the following snippet also used in --update, update it there too(if required)}
- # * undo bluetooth boot disable
- gnome_power_rm_reminder_snap()
- else: remove_daemon()
- remove_complete_msg()
+ print("remove is disabled in the nix package")
elif stats:
not_running_daemon_check()
config_info_dialog()
diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py
index f03e7de..2dff5fb 100755
--- a/auto_cpufreq/core.py
+++ b/auto_cpufreq/core.py
@@ -277,19 +277,12 @@ def get_current_gov():
)

def cpufreqctl():
- """
- deploy cpufreqctl.auto-cpufreq script
- """
- if not (IS_INSTALLED_WITH_SNAP or os.path.isfile("/usr/local/bin/cpufreqctl.auto-cpufreq")):
- copy(SCRIPTS_DIR / "cpufreqctl.sh", "/usr/local/bin/cpufreqctl.auto-cpufreq")
- call(["chmod", "a+x", "/usr/local/bin/cpufreqctl.auto-cpufreq"])
+ # scripts are already in the correct place
+ pass

def cpufreqctl_restore():
- """
- remove cpufreqctl.auto-cpufreq script
- """
- if not IS_INSTALLED_WITH_SNAP and os.path.isfile("/usr/local/bin/cpufreqctl.auto-cpufreq"):
- os.remove("/usr/local/bin/cpufreqctl.auto-cpufreq")
+ #no need to restore
+ pass

def footer(l=79): print("\n" + "-" * l + "\n")

@@ -307,31 +300,8 @@ def remove_complete_msg():
footer()

def deploy_daemon():
- print("\n" + "-" * 21 + " Deploying auto-cpufreq as a daemon " + "-" * 22 + "\n")
-
- cpufreqctl() # deploy cpufreqctl script func call
-
- bluetooth_disable() # turn off bluetooth on boot
-
- auto_cpufreq_stats_path.touch(exist_ok=True)
-
- print("\n* Deploy auto-cpufreq install script")
- copy(SCRIPTS_DIR / "auto-cpufreq-install.sh", "/usr/local/bin/auto-cpufreq-install")
- call(["chmod", "a+x", "/usr/local/bin/auto-cpufreq-install"])
-
- print("\n* Deploy auto-cpufreq remove script")
- copy(SCRIPTS_DIR / "auto-cpufreq-remove.sh", "/usr/local/bin/auto-cpufreq-remove")
- call(["chmod", "a+x", "/usr/local/bin/auto-cpufreq-remove"])
-
- # output warning if gnome power profile is running
- gnome_power_detect_install()
- gnome_power_svc_disable()
-
- tuned_svc_disable()
-
- tlp_service_detect() # output warning if TLP service is detected
-
- call("/usr/local/bin/auto-cpufreq-install", shell=True)
+ # prevent needless copying and system changes
+ pass

def deploy_daemon_performance():
print("\n" + "-" * 21 + " Deploying auto-cpufreq as a daemon (performance) " + "-" * 22 + "\n")
@@ -363,37 +333,7 @@ def deploy_daemon_performance():

call("/usr/local/bin/auto-cpufreq-install", shell=True)

-def remove_daemon():
- # check if auto-cpufreq is installed
- if not os.path.exists("/usr/local/bin/auto-cpufreq-remove"):
- print("\nauto-cpufreq daemon is not installed.\n")
- sys.exit(1)
-
- print("\n" + "-" * 21 + " Removing auto-cpufreq daemon " + "-" * 22 + "\n")
-
- bluetooth_enable() # turn on bluetooth on boot
-
- # output warning if gnome power profile is stopped
- gnome_power_rm_reminder()
- gnome_power_svc_enable()
-
- tuned_svc_enable()
-
- # run auto-cpufreq daemon remove script
- call("/usr/local/bin/auto-cpufreq-remove", shell=True)
-
- # remove auto-cpufreq-remove
- os.remove("/usr/local/bin/auto-cpufreq-remove")
-
- # delete override pickle if it exists
- if os.path.exists(governor_override_state): os.remove(governor_override_state)
-
- # delete stats file
- if auto_cpufreq_stats_path.exists():
- if auto_cpufreq_stats_file is not None: auto_cpufreq_stats_file.close()
- auto_cpufreq_stats_path.unlink()
-
- cpufreqctl_restore() # restore original cpufrectl script
+def remove_daemon(): pass

def gov_check():
for gov in AVAILABLE_GOVERNORS:
Loading

0 comments on commit 44e4abf

Please sign in to comment.