blob: 9be5a2ef0dd6b3b4a8b63fa3ef5a832777b3b4de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
installShellFiles,
darwin,
pandoc,
testers,
lsd,
}:
rustPlatform.buildRustPackage rec {
pname = "lsd";
version = "1.1.5";
src = fetchFromGitHub {
owner = "lsd-rs";
repo = "lsd";
rev = "v${version}";
hash = "sha256-LlMcBMb40yN+rlvGVsh7JaC3j9sF60YxitQQXe1q/oI=";
};
cargoHash = "sha256-yyXFtMyiMq6TaN9/7+BaBERHgubeA8SJGOr08Mn3RnY=";
nativeBuildInputs = [
installShellFiles
pandoc
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];
postInstall = ''
pandoc --standalone --to man doc/lsd.md -o lsd.1
installManPage lsd.1
installShellCompletion --cmd lsd \
--bash $releaseDir/build/lsd-*/out/lsd.bash \
--fish $releaseDir/build/lsd-*/out/lsd.fish \
--zsh $releaseDir/build/lsd-*/out/_lsd
'';
# Found argument '--test-threads' which wasn't expected, or isn't valid in this context
doCheck = false;
passthru.tests.version = testers.testVersion { package = lsd; };
meta = {
homepage = "https://github.com/lsd-rs/lsd";
description = "Next gen ls command";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
zowoq
SuperSandro2000
];
mainProgram = "lsd";
};
}
|