From c8be082d43d308b017b10ffc12fc0562dfcbcf52 Mon Sep 17 00:00:00 2001 From: hustlerone <167621692+hustlerone@users.noreply.github.com> Date: Wed, 12 Feb 2025 18:04:03 +0000 Subject: [PATCH] kmscon: fix virtual terminal logout bug Instead of bumping the version (I can't compile latest rev for now), I cherrypicked this specific commit as a patch. It fixes the biggest dealbreaker when using it, which is hanging on logout. --- pkgs/by-name/km/kmscon/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/km/kmscon/package.nix b/pkgs/by-name/km/kmscon/package.nix index c4b696cd255d..eca939914d9a 100644 --- a/pkgs/by-name/km/kmscon/package.nix +++ b/pkgs/by-name/km/kmscon/package.nix @@ -57,12 +57,19 @@ stdenv.mkDerivation rec { libxslt # xsltproc ]; + # Remove the patches attrlist once the package is bumped to something newer than both of these patches patches = [ (fetchpatch { name = "0001-tests-fix-warnings.patch"; url = "https://github.com/Aetf/kmscon/commit/b65f4269b03de580923ab390bde795e7956b633f.patch"; sha256 = "sha256-ngflPwmNMM/2JzhV+hHiH3efQyoSULfqEywzWox9iAQ="; }) + (fetchpatch { + # https://github.com/Aetf/kmscon/pull/96 + name = "0002-runtime-fix-logout.patch"; + url = "https://github.com/Aetf/kmscon/commit/a81941f4464e6f9cee75bfb8a1db88c253ede33d.patch"; + sha256 = "sha256-geWu8MVsHKs8VHauh5Tf9eWJrdA5+0bPFAQ32T6Xsqg="; + }) ]; # _FORTIFY_SOURCE requires compiling with optimization (-O)