2021-09-18 10:52:07 +00:00
|
|
|
{ fetchFromGitHub, lib, rustPlatform, stdenv, SystemConfiguration }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "joshuto";
|
2021-09-26 12:46:18 +00:00
|
|
|
version = "0.9.1";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kamiyaa";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-09-26 12:46:18 +00:00
|
|
|
sha256 = "sha256-+qKOvFoEF/gZL4ijL8lIRWE9ZWJM2eBlk29Lk46jAfQ=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
# upstream includes an outdated Cargo.lock that stops cargo from compiling
|
|
|
|
cargoPatches = [ ./fix-cargo-lock.patch ];
|
|
|
|
|
|
|
|
cargoSha256 = "sha256-JlekxU9pMkHNsIcH3+7b2I6MYUlxRqNX+0wwyVrQMAE=";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin SystemConfiguration;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Ranger-like terminal file manager written in Rust";
|
|
|
|
homepage = "https://github.com/kamiyaa/joshuto";
|
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|