From 3a9131c2a4d00d4eb64f073880bd0bfbb0a57008 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Wed, 10 Sep 2025 22:35:56 +0200 Subject: [PATCH] hibernate: drop --- pkgs/by-name/hi/hibernate/gen-manpages.patch | 11 ---- pkgs/by-name/hi/hibernate/hibernate.patch | 37 ------------- pkgs/by-name/hi/hibernate/install.patch | 11 ---- pkgs/by-name/hi/hibernate/package.nix | 57 -------------------- pkgs/top-level/aliases.nix | 1 + 5 files changed, 1 insertion(+), 116 deletions(-) delete mode 100644 pkgs/by-name/hi/hibernate/gen-manpages.patch delete mode 100644 pkgs/by-name/hi/hibernate/hibernate.patch delete mode 100644 pkgs/by-name/hi/hibernate/install.patch delete mode 100644 pkgs/by-name/hi/hibernate/package.nix diff --git a/pkgs/by-name/hi/hibernate/gen-manpages.patch b/pkgs/by-name/hi/hibernate/gen-manpages.patch deleted file mode 100644 index cdbacc86bafa..000000000000 --- a/pkgs/by-name/hi/hibernate/gen-manpages.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- hibernate-script-1.98.1/gen-manpages.sh 2008-03-31 09:40:29.000000000 +0200 -+++ hibernate-script-1.98.1/gen-manpages.sh 2008-04-01 15:58:11.000000000 +0200 -@@ -254,7 +254,7 @@ BEGIN { - } - - # Create a copy of hibernate.sh with only the help items --TMPF=`mktemp /tmp/tmp.hibernate.XXXXXX` -+TMPF=`mktemp "$TMPDIR/tmp.hibernate.XXXXXX"` - awk '{ - if ((substr($0, 1, 1) != "#") && (match($0, "AddConfigHelp") || match($0, "AddOptionHelp")) && (match($0, "\\(\\)") == 0)) { - print $0; diff --git a/pkgs/by-name/hi/hibernate/hibernate.patch b/pkgs/by-name/hi/hibernate/hibernate.patch deleted file mode 100644 index 24de1637d3ce..000000000000 --- a/pkgs/by-name/hi/hibernate/hibernate.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- hibernate-script-1.98.1/hibernate.sh 2008-03-31 09:40:29.000000000 +0200 -+++ hibernate-script-1.98.1/hibernate.sh 2008-04-01 18:24:23.000000000 +0200 -@@ -224,7 +224,7 @@ FindXServer() { - - xauth="`get_env_var_of_process $xpid XAUTHORITY`" - xhome="`get_env_var_of_process $xpid HOME`" -- xuser=`/bin/ls -ld /proc/$xpid/ | awk '{print $3}'` -+ xuser=`ls -ld /proc/$xpid/ | awk '{print $3}'` - [ -z $xauth ] && [ -n $xhome ] && [ -f $xhome/.Xauthority ] && xauth=$xhome/.Xauthority - - [ -z $xauth ] && continue -@@ -273,14 +273,14 @@ UsingSuspendMethod() { - # chain. - SortSuspendBits() { - # explicit path required to be ash compatible. -- /bin/echo -ne "$SUSPEND_BITS" | sort -n -+ echo -ne "$SUSPEND_BITS" | sort -n - } - - # SortResumeBits: Returns a list of functions registered in the correct order - # to call for resuming, prefixed by their position number. - SortResumeBits() { - # explicit path required to be ash compatible. -- /bin/echo -ne "$RESUME_BITS" | sort -rn -+ echo -ne "$RESUME_BITS" | sort -rn - } - - # WrapHelpText: takes text from stdin, wraps it with an indent of 5 and width -@@ -557,7 +557,7 @@ LoadScriptlets() { - CURRENT_SOURCED_SCRIPTLET="" - for scriptlet_dir in $SCRIPTLET_PATH ; do - [ -d "$scriptlet_dir" ] || continue -- [ -z "`/bin/ls -1 $scriptlet_dir`" ] && continue -+ [ -z "`ls -1 $scriptlet_dir`" ] && continue - for scriptlet in $scriptlet_dir/* ; do - # Avoid editor backup files. - case "$scriptlet" in *~|*.bak) continue ;; esac diff --git a/pkgs/by-name/hi/hibernate/install.patch b/pkgs/by-name/hi/hibernate/install.patch deleted file mode 100644 index ae296b955ac8..000000000000 --- a/pkgs/by-name/hi/hibernate/install.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- hibernate-script-1.98.1/install.sh 2008-03-31 09:40:29.000000000 +0200 -+++ hibernate-script-1.98.1/install.sh 2008-04-01 15:50:46.000000000 +0200 -@@ -63,7 +63,7 @@ fi - cp -a blacklisted-modules $BLACKLIST - - # Test if they have anything in there, and warn them --if /bin/ls $OLD_SCRIPTLET_DIR/* > /dev/null 2>&1 ; then -+if ls $OLD_SCRIPTLET_DIR/* > /dev/null 2>&1 ; then - echo " **" - echo " ** You have scriptlets already installed in $OLD_SCRIPTLET_DIR" - echo " ** Since version 0.95, these have moved to $SCRIPTLET_DIR." diff --git a/pkgs/by-name/hi/hibernate/package.nix b/pkgs/by-name/hi/hibernate/package.nix deleted file mode 100644 index d870047c7cd8..000000000000 --- a/pkgs/by-name/hi/hibernate/package.nix +++ /dev/null @@ -1,57 +0,0 @@ -{ - lib, - stdenv, - fetchurl, - gawk, -}: - -let - version = "2.0"; -in -stdenv.mkDerivation { - pname = "hibernate"; - inherit version; - src = fetchurl { - url = "http://tuxonice.nigelcunningham.com.au/files/hibernate-script-${version}.tar.gz"; - sha256 = "0ib5bac3spbcwmhf8f9apjbll8x7fgqj4k1s5q3srijh793rfifh"; - }; - - patches = [ - ./install.patch - ./gen-manpages.patch - ./hibernate.patch - ]; - - buildInputs = [ gawk ]; - - installPhase = '' - # FIXME: Storing config files under `$out/etc' is not very useful. - - substituteInPlace "hibernate.sh" --replace \ - 'SWSUSP_D="/etc/hibernate"' "SWSUSP_D=\"$out/etc/hibernate\"" - - # Remove all references to `/bin' and `/sbin'. - for i in scriptlets.d/* - do - substituteInPlace "$i" --replace "/bin/" "" --replace "/sbin/" "" - done - - PREFIX="$out" CONFIG_PREFIX="$out" ./install.sh - - ln -s "$out/share/hibernate/scriptlets.d" "$out/etc/hibernate" - ''; - - meta = { - description = "`hibernate' script for swsusp and Tux-on-Ice"; - mainProgram = "hibernate"; - longDescription = '' - This package provides the `hibernate' script, a command-line utility - that saves the computer's state to disk and switches it off, turning - it into "hibernation". It works both with Linux swsusp and Tux-on-Ice. - ''; - - license = lib.licenses.gpl2Plus; - homepage = "http://www.tuxonice.net/"; - platforms = lib.platforms.linux; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 50e9ba5bec9a..9fbc6ae32746 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1156,6 +1156,7 @@ mapAliases { hawknl = throw "'hawknl' has been removed as it was unmaintained and the upstream unavailable"; # Added 2025-05-07 HentaiAtHome = hentai-at-home; # Added 2024-06-12 hiawatha = throw "hiawatha has been removed, since it is no longer actively supported upstream, nor well maintained in nixpkgs"; # Added 2025-09-10 + hibernate = throw "hibernate has been removed due to lack of maintenance"; # Added 2025-09-10 hiddify-app = throw "hiddify-app has been removed, since it is unmaintained"; # added 2025-08-20 hll2390dw-cups = throw "The hll2390dw-cups package was dropped since it was unmaintained."; # Added 2024-06-21 hoarder = throw "'hoarder' has been renamed to 'karakeep'"; # Added 2025-04-21