lol
at 18.03-beta 43 lines 1.4 kB view raw
1{ stdenv, fetchFromGitHub, rustPlatform, cmake, perl, pkgconfig, zlib 2, darwin, libiconv 3}: 4 5with rustPlatform; 6 7buildRustPackage rec { 8 name = "exa-${version}"; 9 version = "0.8.0"; 10 11 cargoSha256 = "08zzn3a32xfjkmpawcjppn1mr26ws3iv40cckiz8ldz4qc8y9gdh"; 12 13 src = fetchFromGitHub { 14 owner = "ogham"; 15 repo = "exa"; 16 rev = "v${version}"; 17 sha256 = "0jy11a3xfnfnmyw1kjmv4ffavhijs8c940kw24vafklnacx5n88m"; 18 }; 19 20 nativeBuildInputs = [ cmake pkgconfig perl ]; 21 buildInputs = [ zlib ] 22 ++ stdenv.lib.optionals stdenv.isDarwin [ 23 libiconv darwin.apple_sdk.frameworks.Security ] 24 ; 25 26 # Some tests fail, but Travis ensures a proper build 27 doCheck = false; 28 29 meta = with stdenv.lib; { 30 description = "Replacement for 'ls' written in Rust"; 31 longDescription = '' 32 exa is a modern replacement for ls. It uses colours for information by 33 default, helping you distinguish between many types of files, such as 34 whether you are the owner, or in the owning group. It also has extra 35 features not present in the original ls, such as viewing the Git status 36 for a directory, or recursing into directories with a tree view. exa is 37 written in Rust, so its small, fast, and portable. 38 ''; 39 homepage = https://the.exa.website; 40 license = licenses.mit; 41 maintainers = [ maintainers.ehegnes ]; 42 }; 43}