Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4bf632f495a7
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 70d6f5cef296
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Apr 10, 2020

  1. just: 0.4.5 -> 0.5.10

    xrelkd committed Apr 10, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    colemickens Cole Mickens
    Copy the full SHA
    39ac8da View commit details
  2. Merge pull request #84770 from xrelkd/update/just

    just: 0.4.5 -> 0.5.10
    Mic92 authored Apr 10, 2020
    Copy the full SHA
    70d6f5c View commit details
Showing with 29 additions and 14 deletions.
  1. +29 −14 pkgs/development/tools/just/default.nix
43 changes: 29 additions & 14 deletions pkgs/development/tools/just/default.nix
Original file line number Diff line number Diff line change
@@ -2,16 +2,26 @@

rustPlatform.buildRustPackage rec {
pname = "just";
version = "0.4.5";
version = "0.5.10";

src = fetchFromGitHub {
owner = "casey";
repo = pname;
rev = "v${version}";
sha256 = "0a4bml9nxvyh110a60l4lc11yr2ds5r8d3iplslccrkq1ka96av9";
sha256 = "0s8np28glzn3kmh59dwk86yc9fb2lm9fq2325kzmy7rkb5jsdcl1";
};

cargoSha256 = "0wp61zjws9r1aapkapvq2vmad5kylkpw03wa82qhhq30knkpvr7b";
cargoSha256 = "05mrzav3aydvwac9jjckdmlxvxnlcncmkfsdb9z7zvxia4k89w1l";

postInstall = ''
# generate completion scripts for just
mkdir -p "$out/share/"{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
$out/bin/just --completions bash > "$out/share/bash-completion/completions/just"
$out/bin/just --completions fish > "$out/share/fish/vendor_completions.d/just.fish"
$out/bin/just --completions zsh > "$out/share/zsh/site-functions/_just"
'';

checkInputs = [ coreutils bash dash ];

@@ -20,20 +30,25 @@ rustPlatform.buildRustPackage rec {
export USER=just-user
export USERNAME=just-user
sed -i tests/integration.rs \
-e "s@/bin/echo@${coreutils}/bin/echo@g" \
-e "s@#!/usr/bin/env sh@#!${bash}/bin/sh@g" \
-e "s@#!/usr/bin/env cat@#!${coreutils}/bin/cat@g"
sed -i tests/interrupts.rs \
-e "s@/bin/echo@${coreutils}/bin/echo@g" \
-e "s@#!/usr/bin/env sh@#!${bash}/bin/sh@g" \
-e "s@#!/usr/bin/env cat@#!${coreutils}/bin/cat@g"
sed -i src/justfile.rs \
-i tests/*.rs \
-e "s@/bin/echo@${coreutils}/bin/echo@g" \
-e "s@#!/usr/bin/env sh@#!${bash}/bin/sh@g" \
-e "s@#!/usr/bin/env cat@#!${coreutils}/bin/cat@g"
-e "s@#!/usr/bin/env cat@#!${coreutils}/bin/cat@g" \
-e "s@#!/usr/bin/env bash@#!${bash}/bin/sh@g"
'';

# Skip "edit" when running "cargo test",
# since this test case needs "cat".
checkPhase = ''
runHook preCheck
echo "Running cargo test --
--skip edit
''${checkFlags} ''${checkFlagsArray+''${checkFlagsArray[@]}}"
cargo test -- \
--skip edit \
''${checkFlags} ''${checkFlagsArray+"''${checkFlagsArray[@]}"}
runHook postCheck
'';

meta = with stdenv.lib; {