Skip to content

Commit

Permalink
exa: 0.10.1 -> unstable-2023-03-01
Browse files Browse the repository at this point in the history
  • Loading branch information
moni-dz committed Jun 30, 2023
1 parent c8cee76 commit f1ecc7e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 33 deletions.
30 changes: 10 additions & 20 deletions pkgs/tools/misc/exa/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,18 @@
, installShellFiles
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage {
pname = "exa";
version = "0.10.1";
version = "unstable-2023-03-01";

src = fetchFromGitHub {
owner = "ogham";
repo = pname;
rev = "v${version}";
sha256 = "sha256-vChsy/FrJEzTO5O+XFycPMP3jqOeea/hfsC0jJbqUVI=";
repo = "exa";
rev = "c697d066702ab81ce0684fedb4c638e0fc0473e8";
hash = "sha256-sSEnZLL0n7Aw72fPNJmyRxSLXCMC5uWwfTy2fpsuo6c=";
};

# Cargo.lock is outdated
cargoPatches = [ ./update-cargo-lock.diff ];

cargoSha256 = "sha256-ah8IjShmivS6IWL3ku/4/j+WNr/LdUnh1YJnPdaFdcM=";

# FIXME: LTO is broken with rustc 1.61, see https://github.com/rust-lang/rust/issues/97255
# remove this with rustc 1.61.1+
CARGO_PROFILE_RELEASE_LTO = "false";
cargoHash = "sha256-/sxiQMWix4GR12IzuvXbx56mZhbcFpd+NJ49S2N+jzw=";

nativeBuildInputs = [ cmake pkg-config installShellFiles pandoc ];
buildInputs = [ zlib ]
Expand All @@ -46,14 +39,11 @@ rustPlatform.buildRustPackage rec {
pandoc --standalone -f markdown -t man man/exa_colors.5.md > man/exa_colors.5
installManPage man/exa.1 man/exa_colors.5
installShellCompletion \
--name exa completions/completions.bash \
--name exa.fish completions/completions.fish \
--name _exa completions/completions.zsh
--bash completions/bash/exa \
--fish completions/fish/exa.fish \
--zsh completions/zsh/_exa
'';

# Some tests fail, but Travis ensures a proper build
doCheck = false;

meta = with lib; {
description = "Replacement for 'ls' written in Rust";
longDescription = ''
Expand All @@ -64,7 +54,7 @@ rustPlatform.buildRustPackage rec {
for a directory, or recursing into directories with a tree view. exa is
written in Rust, so it’s small, fast, and portable.
'';
changelog = "https://github.com/ogham/exa/releases/tag/v${version}";
changelog = "https://github.com/ogham/exa/releases";
homepage = "https://the.exa.website";
license = licenses.mit;
maintainers = with maintainers; [ ehegnes lilyball globin fortuneteller2k ];
Expand Down
13 changes: 0 additions & 13 deletions pkgs/tools/misc/exa/update-cargo-lock.diff

This file was deleted.

0 comments on commit f1ecc7e

Please sign in to comment.