diff --git a/pkgs/development/libraries/libvarlink/default.nix b/pkgs/development/libraries/libvarlink/default.nix index 099fae07dac1..6bd397ff0d1a 100644 --- a/pkgs/development/libraries/libvarlink/default.nix +++ b/pkgs/development/libraries/libvarlink/default.nix @@ -4,17 +4,19 @@ , meson , ninja , python3 +, nix-update-script +, testers }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "libvarlink"; - version = "22"; + version = "23"; src = fetchFromGitHub { owner = "varlink"; - repo = pname; - rev = version; - sha256 = "1i15227vlc9k4276r833ndhxrcys9305pf6dga1j0alx2vj85yz2"; + repo = finalAttrs.pname; + rev = finalAttrs.version; + sha256 = "sha256-oUy9HhybNMjRBWoqqal1Mw8cC5RddgN4izxAl0cgnKE="; }; nativeBuildInputs = [ meson ninja ]; @@ -33,6 +35,18 @@ stdenv.mkDerivation rec { doCheck = true; + passthru = { + updateScript = nix-update-script { + attrPath = finalAttrs.pname; + }; + tests = { + version = testers.testVersion { + package = finalAttrs.finalPackage; + command = "varlink --version"; + }; + }; + }; + meta = with lib; { description = "C implementation of the Varlink protocol and command line tool"; homepage = "https://github.com/varlink/libvarlink"; @@ -40,4 +54,4 @@ stdenv.mkDerivation rec { maintainers = with maintainers; [ artturin ]; platforms = platforms.linux; }; -} +})