blob: 2741e5f87e7643256f0c01e4889394edf0427b03 (
plain)
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
|
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
bzip2,
zstd,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "rust-traverse";
version = "2.0.0";
src = fetchFromGitHub {
owner = "dmcg310";
repo = "Rust-Traverse";
tag = "v${finalAttrs.version}";
hash = "sha256-OcCWmBNDo4AA5Pk5TQqb8hen9LlHaY09Wrm4BkrU7qA=";
};
cargoHash = "sha256-UGPXV55+0w6QFYxfmmimSX/dleCdtEahveNi8DgSVzQ=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
bzip2
zstd
];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
passthru.updateScript = nix-update-script { };
meta = {
description = "Terminal based file explorer";
homepage = "https://github.com/dmcg310/Rust-Traverse";
changelog = "https://github.com/dmcg310/Rust-Traverse/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.progrm_jarvis ];
mainProgram = "rt";
};
})
|