mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-01 12:20:10 +00:00
term39: 1.5.1 -> 1.6.0, add darwin support (#562914)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
@@ -8,33 +9,44 @@
|
||||
|
||||
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
|
||||
]
|
||||
++ 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";
|
||||
changelog = "https://github.com/alejandroqh/term39/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ alejandroqh ];
|
||||
mainProgram = "term39";
|
||||
platforms = lib.platforms.linux;
|
||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||
};
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user