nixpkgs/pkgs/applications/misc/joshuto/default.nix

28 lines
806 B
Nix
Raw Normal View History

2021-09-09 17:08:16 +00:00
{ fetchFromGitHub, lib, rustPlatform, stdenv, SystemConfiguration }:
rustPlatform.buildRustPackage rec {
pname = "joshuto";
2021-09-25 22:46:36 +00:00
version = "0.9.1";
2021-09-09 17:08:16 +00:00
src = fetchFromGitHub {
owner = "kamiyaa";
repo = pname;
rev = version;
2021-09-25 22:46:36 +00:00
sha256 = "sha256-+qKOvFoEF/gZL4ijL8lIRWE9ZWJM2eBlk29Lk46jAfQ=";
2021-09-09 17:08:16 +00:00
};
2021-09-25 22:46:36 +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-09 17:08:16 +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 ];
};
}