zellij: 0.40.1 -> 0.41.1 (#353630)
This commit is contained in:
commit
c8ce709a65
90
pkgs/by-name/ze/zellij/package.nix
Normal file
90
pkgs/by-name/ze/zellij/package.nix
Normal file
@ -0,0 +1,90 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
stdenv,
|
||||
installShellFiles,
|
||||
pkg-config,
|
||||
curl,
|
||||
openssl,
|
||||
mandown,
|
||||
zellij,
|
||||
testers,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "zellij";
|
||||
version = "0.41.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zellij-org";
|
||||
repo = "zellij";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-EUoJHM0Jm0uFKFeHhtzon/ZRC615SHfYa1gr4RnCNBw=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-rI3pa0dvC/OVJz8gzD1bM0Q+8OWwvGj+jGDEMSbSb2I=";
|
||||
|
||||
env.OPENSSL_NO_VENDOR = 1;
|
||||
|
||||
# Workaround for https://github.com/zellij-org/zellij/issues/3720
|
||||
postPatch = ''
|
||||
substituteInPlace zellij-utils/Cargo.toml \
|
||||
--replace-fail 'isahc = "1.7.2"' 'isahc = { version = "1.7.2", default-features = false, features = ["http2", "text-decoding"] }'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
mandown
|
||||
installShellFiles
|
||||
pkg-config
|
||||
(lib.getDev curl)
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
curl
|
||||
openssl
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
# Ensure that we don't vendor curl, but instead link against the libcurl from nixpkgs
|
||||
doInstallCheck = stdenv.hostPlatform.libc == "glibc";
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
ldd "$out/bin/zellij" | grep libcurl.so
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
postInstall =
|
||||
''
|
||||
mandown docs/MANPAGE.md > zellij.1
|
||||
installManPage zellij.1
|
||||
|
||||
''
|
||||
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd $pname \
|
||||
--bash <($out/bin/zellij setup --generate-completion bash) \
|
||||
--fish <($out/bin/zellij setup --generate-completion fish) \
|
||||
--zsh <($out/bin/zellij setup --generate-completion zsh)
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion { package = zellij; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Terminal workspace with batteries included";
|
||||
homepage = "https://zellij.dev/";
|
||||
changelog = "https://github.com/zellij-org/zellij/blob/v${version}/CHANGELOG.md";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [
|
||||
therealansh
|
||||
_0x4A6F
|
||||
abbe
|
||||
pyrox0
|
||||
];
|
||||
mainProgram = "zellij";
|
||||
};
|
||||
}
|
@ -1,70 +0,0 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, stdenv
|
||||
, installShellFiles
|
||||
, pkg-config
|
||||
, libiconv
|
||||
, openssl
|
||||
, DiskArbitration
|
||||
, Foundation
|
||||
, mandown
|
||||
, zellij
|
||||
, testers
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "zellij";
|
||||
version = "0.40.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zellij-org";
|
||||
repo = "zellij";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-n8cwsCeKWzTw/psvLL3chBr8EcwGoeKB8JeiLSLna1k=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-TyIQaovmpiu7USURA//+IQWNT95rrVk0x9TRspXYUNk=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
mandown
|
||||
installShellFiles
|
||||
pkg-config
|
||||
];
|
||||
|
||||
OPENSSL_NO_VENDOR = 1;
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
libiconv
|
||||
DiskArbitration
|
||||
Foundation
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mandown docs/MANPAGE.md > zellij.1
|
||||
installManPage zellij.1
|
||||
|
||||
'' + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd $pname \
|
||||
--bash <($out/bin/zellij setup --generate-completion bash) \
|
||||
--fish <($out/bin/zellij setup --generate-completion fish) \
|
||||
--zsh <($out/bin/zellij setup --generate-completion zsh)
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion { package = zellij; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Terminal workspace with batteries included";
|
||||
homepage = "https://zellij.dev/";
|
||||
changelog = "https://github.com/zellij-org/zellij/blob/v${version}/CHANGELOG.md";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ therealansh _0x4A6F abbe pyrox0 ];
|
||||
mainProgram = "zellij";
|
||||
};
|
||||
}
|
@ -13856,10 +13856,6 @@ with pkgs;
|
||||
|
||||
zed = callPackage ../development/tools/zed { };
|
||||
|
||||
zellij = callPackage ../tools/misc/zellij {
|
||||
inherit (darwin.apple_sdk.frameworks) DiskArbitration Foundation;
|
||||
};
|
||||
|
||||
zenith = callPackage ../tools/system/zenith {
|
||||
inherit (darwin.apple_sdk.frameworks) IOKit;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user