libvarlink: 22 -> 23

This commit is contained in:
Artturin 2022-10-24 22:42:50 +03:00
parent 6444c18e9c
commit 2900412c48

View File

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