Merge pull request #94328 from r-ryantm/auto-update/the-way

the-way: 0.4.0 -> 0.6.1
This commit is contained in:
Mario Rodas 2020-09-08 05:11:15 -05:00 committed by GitHub
commit 722c9a2cc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 5 deletions

View file

@ -1,20 +1,32 @@
{ stdenv, fetchFromGitHub, rustPlatform }: { stdenv, fetchFromGitHub, rustPlatform, installShellFiles, AppKit, Security }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "the-way"; pname = "the-way";
version = "0.4.0"; version = "0.7.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "out-of-cheese-error"; owner = "out-of-cheese-error";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0q7yg90yxnpaafg6sg7mqkh86qkn43kxy73p9nqkkgrikdnrjh5a"; sha256 = "1whmvzpqm8x1q45mzrp4p40nj251drcryj9z4qjxgjlfsd5d1fxq";
}; };
cargoSha256 = "1a747bmc6s007ram0w4xf1y2nb3pphvqnlx59098lr3v7gllp7x3"; nativeBuildInputs = [ installShellFiles ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ AppKit Security ];
cargoSha256 = "0adhgp6blwx7s1hlwqzzsgkzc43q9avxx8a9ykvvv2s1w7m9ql78";
#checkFlags = "--test-threads=1"; #checkFlags = "--test-threads=1";
doCheck = false; doCheck = false;
postInstall = ''
$out/bin/the-way config default tmp.toml
for shell in bash fish zsh; do
THE_WAY_CONFIG=tmp.toml $out/bin/the-way complete $shell > the-way.$shell
installShellCompletion the-way.$shell
done
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Terminal code snippets manager"; description = "Terminal code snippets manager";
homepage = "https://github.com/out-of-cheese-error/the-way"; homepage = "https://github.com/out-of-cheese-error/the-way";

View file

@ -3323,7 +3323,9 @@ in
teamocil = callPackage ../tools/misc/teamocil { }; teamocil = callPackage ../tools/misc/teamocil { };
the-way = callPackage ../development/tools/the-way { }; the-way = callPackage ../development/tools/the-way {
inherit (darwin.apple_sdk.frameworks) AppKit Security;
};
tsm-client = callPackage ../tools/backup/tsm-client { jdk8 = null; }; tsm-client = callPackage ../tools/backup/tsm-client { jdk8 = null; };
tsm-client-withGui = callPackage ../tools/backup/tsm-client { }; tsm-client-withGui = callPackage ../tools/backup/tsm-client { };