mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
commit
b8347941fe
2 changed files with 35 additions and 0 deletions
31
pkgs/applications/misc/joshuto/default.nix
Normal file
31
pkgs/applications/misc/joshuto/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue