Merge pull request #137201 from figsoda/joshuto

joshuto: init at 0.9.0
This commit is contained in:
Sandro 2021-09-11 21:27:44 +02:00 committed by GitHub
commit b8347941fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ fetchFromGitHub, lib, rustPlatform, stdenv, SystemConfiguration }:
rustPlatform.buildRustPackage rec {
pname = "joshuto";
version = "0.9.0";
src = fetchFromGitHub {
owner = "kamiyaa";
repo = pname;
rev = version;
sha256 = "08d6h7xwcgycw5bdzwwc6aaikcrw3yc7inkiydgml9q261kql7zl";
# upstream includes an outdated Cargo.lock that stops cargo from compiling
postFetch = ''
mkdir -p $out
tar xf $downloadedFile --strip=1 -C $out
substituteInPlace $out/Cargo.lock \
--replace 0.8.6 ${version}
'';
};
cargoSha256 = "1scrqm7fs8y7anfiigimj7y5rjxcc2qvrxiq8ai7k5cwfc4v1ghm";
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 ];
};
}

View file

@ -6322,6 +6322,10 @@ with pkgs;
jo = callPackage ../development/tools/jo { };
joshuto = callPackage ../applications/misc/joshuto {
inherit (darwin.apple_sdk.frameworks) SystemConfiguration;
};
jrnl = python3Packages.callPackage ../applications/misc/jrnl { };
jsawk = callPackage ../tools/text/jsawk { };