Merge pull request #161558 from 06kellyjac/just

just: 0.11.2 -> 1.0.0
This commit is contained in:
Pascal Bach 2022-02-24 21:27:41 +01:00 committed by GitHub
commit 8c4f4b4dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,29 +2,20 @@
rustPlatform.buildRustPackage rec {
pname = "just";
version = "0.11.2";
version = "1.0.0";
src = fetchFromGitHub {
owner = "casey";
repo = pname;
rev = version;
sha256 = "sha256-9lC3vegfxEACoX25ebcLQU453IYy1zQf1K84YyLEnlU=";
sha256 = "sha256-Q5ROUXOeqZfIZdrYwP3uaCy+Nh1FggJRUaNF0mMN7d4=";
};
cargoSha256 = "sha256-cTAbAnSqvrc6e9NtbiV7caj1JnQReWMUhCQoFXZ7Nbs=";
cargoSha256 = "sha256-sCijb9/Of38IebulGmdqSewBRrOCH4RzFopFC0cOPrI=";
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
postInstall = ''
installManPage man/just.1
installShellCompletion --cmd just \
--bash completions/just.bash \
--fish completions/just.fish \
--zsh completions/just.zsh
'';
checkInputs = [ coreutils bash ];
preCheck = ''
@ -49,10 +40,17 @@ rustPlatform.buildRustPackage rec {
"--skip=edit" # trying to run "vim" fails as there's no /usr/bin/env or which in the sandbox to find vim and the dependency is not easily patched
"--skip=run_shebang" # test case very rarely fails with "Text file busy"
"--skip=invoke_error_function" # wants JUST_CHOOSER to be fzf
"--skip=status_error" # "exit status" instead of "exit code"
"--skip=exit_status" # "exit status" instead of "exit code"
];
postInstall = ''
installManPage man/just.1
installShellCompletion --cmd just \
--bash completions/just.bash \
--fish completions/just.fish \
--zsh completions/just.zsh
'';
meta = with lib; {
homepage = "https://github.com/casey/just";
changelog = "https://github.com/casey/just/blob/${version}/CHANGELOG.md";