From 4f1eda08bfe0ad554dc54b4094673b00d9629860 Mon Sep 17 00:00:00 2001 From: Alejandro Quintanar Date: Mon, 28 Sep 2026 22:01:14 +0200 Subject: [PATCH 1/2] term39: 1.5.1 -> 1.6.0 --- pkgs/by-name/te/term39/package.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/te/term39/package.nix b/pkgs/by-name/te/term39/package.nix index 11844b144293..26e9dac766f3 100644 --- a/pkgs/by-name/te/term39/package.nix +++ b/pkgs/by-name/te/term39/package.nix @@ -8,17 +8,17 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "term39"; - version = "1.5.1"; + version = "1.6.0"; __structuredAttrs = true; src = fetchFromGitHub { owner = "alejandroqh"; repo = "term39"; tag = "v${finalAttrs.version}"; - hash = "sha256-IFJXBTjGedDl+FY7HDE5p+jYqA3c5EHHxQfn8hPY/es="; + hash = "sha256-LyrlbxiFBpnCkzOtgASX1WKrJ1BajaXdOsJJEO9Cq18="; }; - cargoHash = "sha256-RguJr5xtuLcn4OO/8hmg06AmUT6WPzGtCpB0J+xw8+I="; + cargoHash = "sha256-TSSUetkXACBLxou5CXsmpGLKuY9fEFYGbGmhBcm9JQY="; nativeBuildInputs = [ pkg-config @@ -32,6 +32,7 @@ rustPlatform.buildRustPackage (finalAttrs: { meta = { description = "Modern, retro-styled terminal multiplexer with a classic MS-DOS aesthetic"; homepage = "https://github.com/alejandroqh/term39"; + changelog = "https://github.com/alejandroqh/term39/releases/tag/v${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ alejandroqh ]; mainProgram = "term39"; From 06ddc317960f0d9c8218fb869f8352dd24c84e8a Mon Sep 17 00:00:00 2001 From: Alejandro Quintanar Date: Mon, 28 Sep 2026 22:01:15 +0200 Subject: [PATCH 2/2] term39: add darwin support --- pkgs/by-name/te/term39/package.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/te/term39/package.nix b/pkgs/by-name/te/term39/package.nix index 26e9dac766f3..2b855db21428 100644 --- a/pkgs/by-name/te/term39/package.nix +++ b/pkgs/by-name/te/term39/package.nix @@ -1,5 +1,6 @@ { lib, + stdenv, rustPlatform, fetchFromGitHub, pkg-config, @@ -22,13 +23,23 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ pkg-config + ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ + # pam-sys (lockscreen) generates its bindings with bindgen; Linux only rustPlatform.bindgenHook ]; - buildInputs = [ + buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pam ]; + checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [ + # Reads the USER environment variable, which is unset in the sandbox + "--skip=lockscreen::auth::macos_auth::tests::test_get_username" + # Checks for /usr/bin/dscl, which is not visible in the sandbox + "--skip=lockscreen::auth::macos_auth::tests::test_macos_available" + ]; + meta = { description = "Modern, retro-styled terminal multiplexer with a classic MS-DOS aesthetic"; homepage = "https://github.com/alejandroqh/term39"; @@ -36,6 +47,6 @@ rustPlatform.buildRustPackage (finalAttrs: { license = lib.licenses.mit; maintainers = with lib.maintainers; [ alejandroqh ]; mainProgram = "term39"; - platforms = lib.platforms.linux; + platforms = lib.platforms.linux ++ lib.platforms.darwin; }; })