2021-01-25 00:26:54 -08:00
|
|
|
{ lib
|
2020-11-28 10:19:46 -08:00
|
|
|
, nixosTests
|
2020-04-09 02:51:59 -07:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
2019-03-08 10:59:12 -08:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-03-17 12:20:03 -07:00
|
|
|
pname = "lsd";
|
2021-03-07 18:26:00 -08:00
|
|
|
version = "0.20.1";
|
2019-03-08 10:59:12 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Peltoche";
|
2019-05-23 05:13:52 -07:00
|
|
|
repo = pname;
|
2019-03-08 10:59:12 -08:00
|
|
|
rev = version;
|
2021-03-07 18:26:00 -08:00
|
|
|
sha256 = "sha256-r/Rllu+tgKqz+vkxA8BSN+3V0lUUd6dEATfickQp4+s=";
|
2019-03-08 10:59:12 -08:00
|
|
|
};
|
|
|
|
|
2021-05-07 04:00:49 -07:00
|
|
|
cargoSha256 = "sha256-O8P29eYlHgmmAADZ/DgTBmj0ZOa+4u/Oee+TMF+/4Ro=";
|
2019-03-08 10:59:12 -08:00
|
|
|
|
2020-04-09 02:51:59 -07:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
2020-03-19 23:46:58 -07:00
|
|
|
installShellCompletion $releaseDir/build/lsd-*/out/{_lsd,lsd.{bash,fish}}
|
2019-03-08 10:59:12 -08:00
|
|
|
'';
|
|
|
|
|
2020-12-12 22:14:18 -08:00
|
|
|
# Found argument '--test-threads' which wasn't expected, or isn't valid in this context
|
|
|
|
doCheck = false;
|
2020-10-21 04:49:30 -07:00
|
|
|
|
2020-11-28 10:19:46 -08:00
|
|
|
passthru.tests = { inherit (nixosTests) lsd; };
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/Peltoche/lsd";
|
2019-03-08 10:59:12 -08:00
|
|
|
description = "The next gen ls command";
|
|
|
|
license = licenses.asl20;
|
2021-03-07 18:26:00 -08:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne marsam zowoq SuperSandro2000 ];
|
2019-03-08 10:59:12 -08:00
|
|
|
};
|
|
|
|
}
|