preload: drop package/module (#466242)
This commit is contained in:
@@ -1110,7 +1110,7 @@ Make sure to also check the many updates in the [Nixpkgs library](#sec-release-2
|
||||
|
||||
- [preload](http://sourceforge.net/projects/preload), a service that makes
|
||||
applications run faster by prefetching binaries and shared objects.
|
||||
Available as [services.preload](#opt-services.preload.enable).
|
||||
Available as `services.preload`.
|
||||
|
||||
### Other Notable Changes {#sec-release-23.11-nixos-notable-changes}
|
||||
|
||||
|
||||
@@ -913,7 +913,6 @@
|
||||
./services/misc/podgrab.nix
|
||||
./services/misc/polaris.nix
|
||||
./services/misc/portunus.nix
|
||||
./services/misc/preload.nix
|
||||
./services/misc/pufferpanel.nix
|
||||
./services/misc/pykms.nix
|
||||
./services/misc/radicle.nix
|
||||
|
||||
@@ -71,6 +71,16 @@ in
|
||||
"programs"
|
||||
"gnome-documents"
|
||||
] "The corresponding package was removed from nixpkgs.")
|
||||
(mkRemovedOptionModule
|
||||
[
|
||||
"services"
|
||||
"preload"
|
||||
]
|
||||
''
|
||||
The corresponding package was removed from nixpkgs,
|
||||
due to lack of usage and being broken since its introduction.
|
||||
''
|
||||
) # added 2025-11-29
|
||||
(mkRemovedOptionModule [
|
||||
"programs"
|
||||
"goldwarden"
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.services.preload;
|
||||
in
|
||||
{
|
||||
meta = {
|
||||
maintainers = pkgs.preload.meta.maintainers;
|
||||
};
|
||||
|
||||
options.services.preload = {
|
||||
enable = lib.mkEnableOption "preload";
|
||||
package = lib.mkPackageOption pkgs "preload" { };
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
systemd.services.preload = {
|
||||
description = "Loads data into ram during idle time of CPU.";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
EnvironmentFile = "${cfg.package}/etc/conf.d/preload";
|
||||
ExecStart = "${lib.getExe cfg.package} -l '' --foreground $PRELOAD_OPTS";
|
||||
Type = "simple";
|
||||
# Only preload data during CPU idle time
|
||||
IOSchedulingClass = 3;
|
||||
DynamicUser = true;
|
||||
StateDirectory = "preload";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index e4072e4..4a6b069 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -327,23 +327,9 @@ installcheck-initdSCRIPTS: $(initd_SCRIPTS)
|
||||
else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
|
||||
done; \
|
||||
done; rm -f c$${pid}_.???; exit $$bad
|
||||
-install-logDATA: $(log_DATA)
|
||||
- @$(NORMAL_INSTALL)
|
||||
- test -z "$(logdir)" || $(MKDIR_P) "$(DESTDIR)$(logdir)"
|
||||
- @list='$(log_DATA)'; for p in $$list; do \
|
||||
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
- f=$(am__strip_dir) \
|
||||
- echo " $(logDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(logdir)/$$f'"; \
|
||||
- $(logDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(logdir)/$$f"; \
|
||||
- done
|
||||
+install-logDATA:
|
||||
|
||||
uninstall-logDATA:
|
||||
- @$(NORMAL_UNINSTALL)
|
||||
- @list='$(log_DATA)'; for p in $$list; do \
|
||||
- f=$(am__strip_dir) \
|
||||
- echo " rm -f '$(DESTDIR)$(logdir)/$$f'"; \
|
||||
- rm -f "$(DESTDIR)$(logdir)/$$f"; \
|
||||
- done
|
||||
install-logrotateDATA: $(logrotate_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(logrotatedir)" || $(MKDIR_P) "$(DESTDIR)$(logrotatedir)"
|
||||
@@ -361,23 +347,9 @@ uninstall-logrotateDATA:
|
||||
echo " rm -f '$(DESTDIR)$(logrotatedir)/$$f'"; \
|
||||
rm -f "$(DESTDIR)$(logrotatedir)/$$f"; \
|
||||
done
|
||||
-install-pkglocalstateDATA: $(pkglocalstate_DATA)
|
||||
- @$(NORMAL_INSTALL)
|
||||
- test -z "$(pkglocalstatedir)" || $(MKDIR_P) "$(DESTDIR)$(pkglocalstatedir)"
|
||||
- @list='$(pkglocalstate_DATA)'; for p in $$list; do \
|
||||
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
||||
- f=$(am__strip_dir) \
|
||||
- echo " $(pkglocalstateDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkglocalstatedir)/$$f'"; \
|
||||
- $(pkglocalstateDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkglocalstatedir)/$$f"; \
|
||||
- done
|
||||
+install-pkglocalstateDATA:
|
||||
|
||||
uninstall-pkglocalstateDATA:
|
||||
- @$(NORMAL_UNINSTALL)
|
||||
- @list='$(pkglocalstate_DATA)'; for p in $$list; do \
|
||||
- f=$(am__strip_dir) \
|
||||
- echo " rm -f '$(DESTDIR)$(pkglocalstatedir)/$$f'"; \
|
||||
- rm -f "$(DESTDIR)$(pkglocalstatedir)/$$f"; \
|
||||
- done
|
||||
install-sysconfigDATA: $(sysconfig_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(sysconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(sysconfigdir)"
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchzip,
|
||||
autoconf,
|
||||
automake,
|
||||
pkg-config,
|
||||
glib,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "preload";
|
||||
version = "0.6.4";
|
||||
|
||||
src = fetchzip {
|
||||
url = "mirror://sourceforge/preload/preload-${version}.tar.gz";
|
||||
hash = "sha256-vAIaSwvbUFyTl6DflFhuSaMuX9jPVBah+Nl6c/fUbAM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Prevents creation of /var directories on build
|
||||
./0001-prevent-building-to-var-directories.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoconf
|
||||
automake
|
||||
pkg-config
|
||||
];
|
||||
buildInputs = [ glib ];
|
||||
|
||||
configureFlags = [ "--localstatedir=/var" ];
|
||||
|
||||
postInstall = ''
|
||||
make sysconfigdir=$out/etc/conf.d install
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Makes applications run faster by prefetching binaries and shared objects";
|
||||
homepage = "https://sourceforge.net/projects/preload";
|
||||
license = licenses.gpl2Only;
|
||||
platforms = lib.platforms.linux;
|
||||
mainProgram = "preload";
|
||||
maintainers = with maintainers; [ ldprg ];
|
||||
};
|
||||
}
|
||||
@@ -1298,6 +1298,7 @@ mapAliases {
|
||||
pot = throw "'pot' has been removed as it requires libsoup 2.4 which is EOL"; # Added 2025-10-09
|
||||
powerdns = throw "'powerdns' has been renamed to/replaced by 'pdns'"; # Converted to throw 2025-10-27
|
||||
prboom-plus = throw "'prboom-plus' has been removed since it is unmaintained upstream."; # Added 2025-09-14
|
||||
preload = throw "'preload' has been removed due to lack of usage and being broken since its introduction into nixpkgs"; # Added 2025-11-29
|
||||
presage = throw "presage has been removed, as it has been unmaintained since 2018"; # Added 2025-06-19
|
||||
preserves-nim = throw "'preserves-nim' has been removed due to a hostile upstream moving tags and breaking src FODs"; # Added 2025-09-01
|
||||
private-gpt = throw "'private-gpt' has been removed from nixpkgs, as it was broken and unmaintained"; # Added 2025-07-28
|
||||
|
||||
Reference in New Issue
Block a user