exa: 0.9.0 -> unstable-2021-01-14
This commit is contained in:
parent
0dc64d5d71
commit
ed8a3061c5
|
@ -1,43 +1,34 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, rustPlatform, cmake, perl, pkg-config, zlib
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, cmake, pandoc, perl, pkg-config, zlib
|
||||||
, Security, libiconv, installShellFiles
|
, Security, libiconv, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with rustPlatform;
|
rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
buildRustPackage rec {
|
|
||||||
pname = "exa";
|
pname = "exa";
|
||||||
version = "0.9.0";
|
version = "unstable-2021-01-14";
|
||||||
|
|
||||||
cargoSha256 = "0nl106jlbr8gnnlbi20mrc6zyww7vxgmw6w34ibndxqh9ggxwfvr";
|
cargoSha256 = "1lmjh0grpnx20y6raxnxgjkr92h395r6jk8mm2ypc4cxpxczdqvl";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ogham";
|
owner = "ogham";
|
||||||
repo = "exa";
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "13b91cced4cab012413b25c9d3e30c63548639d0";
|
||||||
sha256 = "14qlm9zb9v22hxbbi833xaq2b7qsxnmh15s317200vz5f1305hhw";
|
sha256 = "18y4v1s102lh3gvgjwdd66qlsr75wpwpcj8zsk5y5r95a405dkfm";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
nativeBuildInputs = [ cmake pkg-config perl installShellFiles pandoc ];
|
||||||
(fetchpatch {
|
|
||||||
# https://github.com/ogham/exa/pull/584
|
|
||||||
name = "fix-panic-on-broken-symlink-in-git-repository.patch";
|
|
||||||
url = "https://github.com/ogham/exa/pull/584/commits/a7a8e99cf3a15992afb2383435da0231917ffb54.patch";
|
|
||||||
sha256 = "0n5q483sz300jkp0sbb350hdinmkw7s6bmigdyr6ypz3fvygd9hx";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config perl installShellFiles ];
|
|
||||||
buildInputs = [ zlib ]
|
buildInputs = [ zlib ]
|
||||||
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
|
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
|
||||||
|
|
||||||
outputs = [ "out" "man" ];
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
installManPage contrib/man/exa.1
|
pandoc --standalone -f markdown -t man man/exa.1.md > man/exa.1
|
||||||
|
pandoc --standalone -f markdown -t man man/exa_colors.5.md > man/exa_colors.5
|
||||||
|
installManPage man/exa.1 man/exa_colors.5
|
||||||
installShellCompletion \
|
installShellCompletion \
|
||||||
--name exa contrib/completions.bash \
|
--name exa completions/completions.bash \
|
||||||
--name exa.fish contrib/completions.fish \
|
--name exa.fish completions/completions.fish \
|
||||||
--name _exa contrib/completions.zsh
|
--name _exa completions/completions.zsh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Some tests fail, but Travis ensures a proper build
|
# Some tests fail, but Travis ensures a proper build
|
||||||
|
|
Loading…
Reference in a new issue