mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
kubernix: 0.2.0 -> 0.2.0-unstable-2021-11-16
Updates some dependencies to non-vulnerable versions.
This commit is contained in:
1180
pkgs/by-name/ku/kubernix/Cargo.lock
generated
1180
pkgs/by-name/ku/kubernix/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
14
pkgs/by-name/ku/kubernix/Cargo.toml.patch
Normal file
14
pkgs/by-name/ku/kubernix/Cargo.toml.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
diff --git a/Cargo.toml b/Cargo.toml
|
||||
index 681e634..48cbc8e 100644
|
||||
--- a/Cargo.toml
|
||||
+++ b/Cargo.toml
|
||||
@@ -19,7 +19,8 @@ path = "src/main.rs"
|
||||
[dependencies]
|
||||
anyhow = "1.0.43"
|
||||
base64 = "0.13.0"
|
||||
-clap = { git = "https://github.com/clap-rs/clap", features = ["wrap_help"] }
|
||||
+clap = { version = "= 3.0.0-beta.2", features = ["wrap_help"] }
|
||||
+clap_derive = "= 3.0.0-beta.2"
|
||||
console = "0.14.1"
|
||||
crossbeam-channel = "0.5.1"
|
||||
getset = "0.1.1"
|
||||
13
pkgs/by-name/ku/kubernix/fix-compile-error.patch
Normal file
13
pkgs/by-name/ku/kubernix/fix-compile-error.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/crio.rs b/src/crio.rs
|
||||
index 36bf40b..97d5e57 100644
|
||||
--- a/src/crio.rs
|
||||
+++ b/src/crio.rs
|
||||
@@ -34,7 +34,7 @@ impl Display for CriSocket {
|
||||
impl CriSocket {
|
||||
pub fn new(path: PathBuf) -> Result<CriSocket> {
|
||||
if path.display().to_string().len() > 100 {
|
||||
- bail!("Socket path '{}' is too long")
|
||||
+ bail!("Socket path '{}' is too long", path.display().to_string())
|
||||
}
|
||||
Ok(CriSocket(path))
|
||||
}
|
||||
@@ -6,22 +6,28 @@
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "kubernix";
|
||||
version = "0.2.0";
|
||||
version = "0.2.0-unstable-2021-11-16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "saschagrunert";
|
||||
repo = "kubernix";
|
||||
rev = "v${version}";
|
||||
sha256 = "04dzfdzjwcwwaw9min322g30q0saxpq5kqzld4f22fmk820ki6gp";
|
||||
rev = "630087e023e403d461c4bb8b1c9368b26a2c0744";
|
||||
sha256 = "sha256-IkfVpNxWOqQt/aXsN4iD9dkKKyOui3maKowVibuKbvM=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"clap-3.0.0-beta.1" = "sha256-tErZmEiAF1v39AtgRUHoEmoYqXPWRDXBEkWUbH+fPyY=";
|
||||
"clap_derive-0.3.0" = "sha256-VijH+XB4WeKYUsJH9h/ID8EGZ89R3oauYO8Yg331dPU=";
|
||||
};
|
||||
};
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
|
||||
patches = [
|
||||
# Need a specific version of clap and clap_derive: fails with anything greater.
|
||||
./Cargo.toml.patch
|
||||
# error: 1 positional argument in format string, but no arguments were given
|
||||
./fix-compile-error.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
cp ${./Cargo.lock} Cargo.lock
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
Reference in New Issue
Block a user