Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
stdenv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "joshuto";
|
|
version = "0.9.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kamiyaa";
|
|
repo = "joshuto";
|
|
rev = "v${version}";
|
|
hash = "sha256-hfu3Verbrq0to3I5/gX6ZhVr7ewjHNamzvaUcmcUIRU=";
|
|
};
|
|
|
|
cargoHash = "sha256-K/++/NdOLSvhxQ8LBS+jnthCRJxScoOjWSp7pmfHVaQ=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd joshuto \
|
|
--bash <($out/bin/joshuto completions bash) \
|
|
--zsh <($out/bin/joshuto completions zsh) \
|
|
--fish <($out/bin/joshuto completions fish)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Ranger-like terminal file manager written in Rust";
|
|
homepage = "https://github.com/kamiyaa/joshuto";
|
|
changelog = "https://github.com/kamiyaa/joshuto/releases/tag/${src.rev}";
|
|
license = licenses.lgpl3Only;
|
|
maintainers = with maintainers; [
|
|
figsoda
|
|
totoroot
|
|
xrelkd
|
|
];
|
|
mainProgram = "joshuto";
|
|
};
|
|
}
|