innernet: 1.5.1 -> 1.5.2

This commit is contained in:
0x4A6F 2021-12-06 10:26:58 +01:00
parent 83c81e1045
commit eab69fa28d
No known key found for this signature in database
GPG key ID: 8DEDBA5BE07080E1

View file

@ -1,16 +1,27 @@
{ lib, stdenv, rustPlatform, fetchFromGitHub, llvmPackages, sqlite, installShellFiles, Security, libiconv }: { lib
, stdenv
, rustPlatform
, fetchFromGitHub
, llvmPackages
, sqlite
, installShellFiles
, Security
, libiconv
, innernet
, testVersion
}:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "innernet"; pname = "innernet";
version = "1.5.1"; version = "1.5.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tonarino"; owner = "tonarino";
repo = "innernet"; repo = "innernet";
rev = "v${version}"; rev = "v${version}";
sha256 = "1ja7khvc4cy317ckglnlf11wfmin62ihic061phdp6rmfv95cza0"; sha256 = "141zjfl125m5lrimam1dbpk40dqfq4vnaz42sbiq1v1avyg684fq";
}; };
cargoSha256 = "18xpwav48xv7xm7r3w9qplmv2i18cg09pkahyvs5l4akdjgxyw10"; cargoSha256 = "0559d0ayysvqs4k46fhgd4r8wa89abgx6rvhlh0gnlnga8vacpw5";
nativeBuildInputs = with llvmPackages; [ nativeBuildInputs = with llvmPackages; [
llvm llvm
@ -28,21 +39,10 @@ rustPlatform.buildRustPackage rec {
installShellCompletion doc/innernet-server.completions.{bash,fish,zsh} installShellCompletion doc/innernet-server.completions.{bash,fish,zsh}
''; '';
doInstallCheck = true; passthru.tests = {
installCheckPhase = '' serverVersion = testVersion { package = innernet; command = "innernet-server --version"; };
if [[ "$("$out/bin/${pname}"-server --version)" == "${pname}-server ${version}" ]]; then version = testVersion { package = innernet; command = "innernet --version"; };
echo '${pname}-server smoke check passed' };
else
echo '${pname}-server smoke check failed'
return 1
fi
if [[ "$("$out/bin/${pname}" --version)" == "${pname} ${version}" ]]; then
echo '${pname} smoke check passed'
else
echo '${pname} smoke check failed'
return 1
fi
'';
meta = with lib; { meta = with lib; {
description = "A private network system that uses WireGuard under the hood"; description = "A private network system that uses WireGuard under the hood";