From 2900412c48d9859890dc9e28ef05e238ec44cd3f Mon Sep 17 00:00:00 2001 From: Artturin Date: Mon, 24 Oct 2022 22:42:50 +0300 Subject: [PATCH] libvarlink: 22 -> 23 --- .../libraries/libvarlink/default.nix | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) 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; }; -} +})