2016-02-15 21:43:31 +01:00
|
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, openssl, cmake, zlib }:
|
|
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
|
|
|
|
name = "exa-${version}";
|
2016-04-20 11:41:37 +02:00
|
|
|
|
version = "2016-04-20";
|
2016-02-15 21:43:31 +01:00
|
|
|
|
|
2016-09-20 11:05:25 +02:00
|
|
|
|
# NOTE: There is an impurity caused by `exa` depending on
|
|
|
|
|
# https://github.com/rust-datetime/zoneinfo-compiled.git
|
2016-08-24 11:42:23 +02:00
|
|
|
|
depsSha256 = "0qsqkgc1wxigvskhaamgfp5pyc2kprsikhcfccysgs07w44nxkd0";
|
2016-02-15 21:43:31 +01:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "ogham";
|
|
|
|
|
repo = "exa";
|
2016-04-20 11:41:37 +02:00
|
|
|
|
rev = "110a1c716bfc4a7f74f74b3c4f0a881c773fcd06";
|
|
|
|
|
sha256 = "136yxi85m50vwmqinr1wnd0h29n5yjykqqqk9ibbcmmhx8sqhjzf";
|
2016-02-15 21:43:31 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
buildInputs = [ openssl zlib ];
|
|
|
|
|
|
|
|
|
|
# Some tests fail, but Travis ensures a proper build
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
|
description = "Replacement for 'ls' written in Rust";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
exa is a modern replacement for ls. It uses colours for information by
|
|
|
|
|
default, helping you distinguish between many types of files, such as
|
|
|
|
|
whether you are the owner, or in the owning group. It also has extra
|
|
|
|
|
features not present in the original ls, such as viewing the Git status
|
|
|
|
|
for a directory, or recursing into directories with a tree view. exa is
|
|
|
|
|
written in Rust, so it’s small, fast, and portable.
|
|
|
|
|
'';
|
|
|
|
|
homepage = http://bsago.me/exa;
|
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainer = [ maintainers.ehegnes ];
|
2016-11-16 12:27:12 +01:00
|
|
|
|
broken = true;
|
2016-02-15 21:43:31 +01:00
|
|
|
|
};
|
|
|
|
|
}
|