Robert Schütz 2024-10-26 21:49:23 -07:00
parent 2768c7d042
commit db2dcfb6f7
2 changed files with 4 additions and 6 deletions

View File

@ -16,12 +16,10 @@ in {
};
testScript = ''
import json
mollysocket.wait_for_unit("mollysocket.service")
mollysocket.wait_for_open_port(${toString port})
out = mollysocket.succeed("curl --fail http://127.0.0.1:${toString port}")
assert json.loads(out)["mollysocket"]["version"] == "${toString pkgs.mollysocket.version}"
assert "Version ${pkgs.mollysocket.version}" in out
'';
})

View File

@ -11,16 +11,16 @@
rustPlatform.buildRustPackage rec {
pname = "mollysocket";
version = "1.4.1";
version = "1.5.1";
src = fetchFromGitHub {
owner = "mollyim";
repo = "mollysocket";
rev = version;
hash = "sha256-vE5J4BKYmVqtowfxDDTOwFKws7phYRm9xKFPiDNuNn4=";
hash = "sha256-RRnMmdyr4FZHsdLjGvTRiSw+YC+OutWqsoEId7ZlSX0=";
};
cargoHash = "sha256-s/EhX5o6XuUqcrqhXY274MyWhRukgetfIZKQ4XNlq6Y=";
cargoHash = "sha256-BXllzuw01ANrk+osUsAlMyLRAptvxGO+rl0ygsCfewU=";
nativeBuildInputs = [
pkg-config