mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
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:
commit
ed8de578a0
1283
pkgs/tools/package-management/cargo-outdated/cargo-lock.patch
Normal file
1283
pkgs/tools/package-management/cargo-outdated/cargo-lock.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
18
pkgs/tools/package-management/cargo-outdated/update-cargo-lock.sh
Executable file
18
pkgs/tools/package-management/cargo-outdated/update-cargo-lock.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user