Merge pull request #120908 from 06kellyjac/just

just: 0.9.0 -> 0.9.1

authored by

Sandro and committed by
GitHub
65126243 de251509

+10 -4
+10 -4
pkgs/development/tools/just/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "just"; 5 - version = "0.9.0"; 5 + version = "0.9.1"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "casey"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-orHUovyFFOPRvbfLKQhkfZzM0Gs2Cpe1uJg/6+P8HKY="; 11 + sha256 = "sha256-5W/5HgXjDmr2JGYGy5FPmCNIuAagmzEHnskDUg+FzjY="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-YDIGZRbszhgWM7iAc2i89jyndZvZZsg63ADQfqFxfXw="; 14 + cargoSha256 = "sha256-4lLWtj/MLaSZU7nC4gVn7TyhaLtO1FUSinQejocpiuY="; 15 15 16 16 nativeBuildInputs = [ installShellFiles ]; 17 17 buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; ··· 32 32 export USER=just-user 33 33 export USERNAME=just-user 34 34 35 + # Prevent string.rs from being changed 36 + cp tests/string.rs $TMPDIR/string.rs 37 + 35 38 sed -i src/justfile.rs \ 36 39 -i tests/*.rs \ 37 40 -e "s@/bin/echo@${coreutils}/bin/echo@g" \ 38 41 -e "s@#!/usr/bin/env sh@#!${bash}/bin/sh@g" \ 39 42 -e "s@#!/usr/bin/env cat@#!${coreutils}/bin/cat@g" \ 40 43 -e "s@#!/usr/bin/env bash@#!${bash}/bin/sh@g" 44 + 45 + # Return unchanged string.rs 46 + cp $TMPDIR/string.rs tests/string.rs 41 47 ''; 42 48 43 - # Skip "edit" when running "cargo test", since this test case needs "cat". 49 + # Skip "edit" when running "cargo test", since this test case needs "cat" and "vim". 44 50 # Skip "choose" when running "cargo test", since this test case needs "fzf". 45 51 checkFlags = [ "--skip=choose" "--skip=edit" ]; 46 52