Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init: zetta at unstable-2023-06-16 #245843

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions pkgs/tools/misc/zetta/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{ lib
, gitSupport ? true
, stdenv
, fetchFromGitHub
, rustPlatform
, cmake
, pandoc
, pkg-config
, zlib
, Security
, libiconv
, installShellFiles
}:

rustPlatform.buildRustPackage {
pname = "zetta";
version = "unstable-2023-06-16";

src = fetchFromGitHub {
owner = "syphar";
repo = "zetta";
rev = "0f39fffa164b62d97d599cd718bee81ca080ed56";
hash = "sha256-2pNp1AHPZCvLt5de8+OJfazi8WmApLbPMgCF/kIXV90=";
};

cargoHash = "sha256-qgZhp6EkgSma/hdakaE65VkH4UbwLkxav7a9xnWJDhs=";

nativeBuildInputs = [ cmake pkg-config installShellFiles pandoc ];
buildInputs = [ zlib ]
++ lib.optionals stdenv.isDarwin [ libiconv Security ];

buildNoDefaultFeatures = true;
buildFeatures = lib.optional gitSupport "git";

outputs = [ "out" "man" ];

# BLOCKED: upstream has to update man/exa.1.md to man/zetta.1.md etc.
# BLOCKED: upstream has to update completions
postInstall = ''
pandoc --standalone -f markdown -t man man/exa.1.md > man/zetta.1
pandoc --standalone -f markdown -t man man/exa_colors.5.md > man/zetta_colors.5
installManPage man/zetta.1 man/zetta_colors.5
# installShellCompletion \
# --bash completions/bash/exa \
# --fish completions/fish/exa.fish \
# --zsh completions/zsh/_exa
'';

meta = with lib; {
description = "Replacement for 'ls' written in Rust";
longDescription = ''
zetta builds on the awesome foundation of exa so we can add more features.
When exa becomes maintained again, features could be merged back.
'';
changelog = "https://github.com/syphar/zetta/releases";
homepage = "https://github.com/syphar/zetta";
license = licenses.mit;
maintainers = with maintainers; [ cafkafk ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7757,6 +7757,10 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};

zetta = callPackage ../tools/misc/zetta {
inherit (darwin.apple_sdk.frameworks) Security;
};

exactaudiocopy = callPackage ../applications/audio/exact-audio-copy { };

exempi = callPackage ../development/libraries/exempi { };
Expand Down