Michael Livshin
2024-05-11 21:51:30 +02:00
committed by GitHub
parent ec9c5bdaf8
commit d2d8db8cb7
3 changed files with 2193 additions and 312 deletions
File diff suppressed because it is too large Load Diff
@@ -14,13 +14,13 @@
let
pname = "zerotierone";
version = "1.12.2";
version = "1.14.0";
src = fetchFromGitHub {
owner = "zerotier";
repo = "ZeroTierOne";
rev = version;
sha256 = "sha256-p0zrYgbHTLefj5GTrMnYLytCXZ/nRuqTL+6dEeC+uVw=";
sha256 = "sha256-YWcqALUB3ZEukL4er2FKcyNdEbuaf//QU5hRbKAfxDA=";
};
in stdenv.mkDerivation {
@@ -30,13 +30,14 @@ in stdenv.mkDerivation {
lockFile = ./Cargo.lock;
outputHashes = {
"jwt-0.16.0" = "sha256-P5aJnNlcLe9sBtXZzfqHdRvxNfm6DPBcfcKOVeLZxcM=";
"rustfsm-0.1.0" = "sha256-q7J9QgN67iuoNhQC8SDVzUkjCNRXGiNCkE8OsQc5+oI=";
};
};
postPatch = "cp ${./Cargo.lock} Cargo.lock";
preConfigure = ''
cmp ./Cargo.lock ./zeroidc/Cargo.lock || {
echo 1>&2 "Please make sure that the derivation's Cargo.lock is identical to ./zeroidc/Cargo.lock!"
cmp ./Cargo.lock ./rustybits/Cargo.lock || {
echo 1>&2 "Please make sure that the derivation's Cargo.lock is identical to ./rustybits/Cargo.lock!"
exit 1
}
+1 -1
View File
@@ -3,5 +3,5 @@
version=$(curl --silent "https://api.github.com/repos/zerotier/ZeroTierOne/releases" | jq '.[0].tag_name' --raw-output)
curl --silent "https://raw.githubusercontent.com/zerotier/ZeroTierOne/$version/zeroidc/Cargo.lock" > "$(dirname "$0")/Cargo.lock"
curl --silent "https://raw.githubusercontent.com/zerotier/ZeroTierOne/$version/rustybits/Cargo.lock" > "$(dirname "$0")/Cargo.lock"
update-source-version zerotierone "$version"