about summary refs log tree commit diff
path: root/pkgs/development/libraries/libvarlink
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-10-24 22:42:50 +0300
committerArtturin <Artturin@artturin.com>2022-10-24 23:10:38 +0300
commit2900412c48d9859890dc9e28ef05e238ec44cd3f (patch)
tree8ff02a7535a5e3b34acac397bf231ba18f33f2d8 /pkgs/development/libraries/libvarlink
parent6444c18e9ce2d4bc883b9b356952d701f77f2d6a (diff)
libvarlink: 22 -> 23
Diffstat (limited to 'pkgs/development/libraries/libvarlink')
-rw-r--r--pkgs/development/libraries/libvarlink/default.nix26
1 files changed, 20 insertions, 6 deletions
diff --git a/pkgs/development/libraries/libvarlink/default.nix b/pkgs/development/libraries/libvarlink/default.nix
index 099fae07dac15..6bd397ff0d1ae 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;
   };
-}
+})