Merge pull request #75653 from ivan/cargo-outdated-0.9.1

cargo-outdated: unstable-2019-04-13 -> 0.9.1
This commit is contained in:
Maximilian Bosch 2019-12-14 18:37:35 +01:00 committed by GitHub
commit ed8de578a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1307 additions and 5 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,16 +2,17 @@
rustPlatform.buildRustPackage rec {
pname = "cargo-outdated";
version = "unstable-2019-04-13";
version = "0.9.1";
src = fetchFromGitHub {
owner = "kbknapp";
repo = pname;
rev = "ce4b6baddc94b77a155abbb5a4fa4d3b31a45598";
sha256 = "0x00vn0ldnm2hvndfmq4g4q5w6axyg9vsri3i5zxhmir7423xabp";
rev = "v${version}";
sha256 = "02gsarwm4gjkr9m4sfbjwp37xmqhch8qpyy027bxqkg8iyipxm69";
};
cargoSha256 = "1xqii2z0asgkwn1ny9n19w7d4sjz12a6i55x2pf4cfrciapdpvdl";
cargoPatches = [ ./cargo-lock.patch ];
cargoSha256 = "1ywmrvkwwwwh99l4j8vc4cyk8qjd0jx8hn68yr2h31ya1bzcqbd1";
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ]
@ -26,6 +27,6 @@ rustPlatform.buildRustPackage rec {
homepage = https://github.com/kbknapp/cargo-outdated;
license = with licenses; [ asl20 /* or */ mit ];
platforms = platforms.all;
maintainers = [ maintainers.sondr3 ];
maintainers = with maintainers; [ sondr3 ivan ];
};
}

View File

@ -0,0 +1,18 @@
#!/bin/sh
# This updates cargo-lock.patch for the cargo-outdated version listed in default.nix.
set -eu -o verbose
here=$PWD
version=$(cat default.nix | grep '^ version = "' | cut -d '"' -f 2)
checkout=$(mktemp -d)
git clone -b "v$version" --depth=1 https://github.com/kbknapp/cargo-outdated "$checkout"
cd "$checkout"
cargo generate-lockfile
git add -f Cargo.lock
git diff HEAD -- Cargo.lock > "$here"/cargo-lock.patch
cd "$here"
rm -rf "$checkout"