summary refs log tree commit diff
path: root/pkgs/development/libraries/gensio/default.nix
diff options
context:
space:
mode:
authorRouven Czerwinski <rouven@czerwinskis.de>2021-01-04 10:44:07 +0100
committerRouven Czerwinski <rouven@czerwinskis.de>2021-01-11 06:08:34 +0100
commit78dd741ec77cc698596d3520a306fe99cf137420 (patch)
treee6033d79409b082f006a7be9e1ff11cf19dc7124 /pkgs/development/libraries/gensio/default.nix
parent22b9910f4eb58919536371ff8c3cb6c72cbaf057 (diff)
downloadnixpkgs-78dd741ec77cc698596d3520a306fe99cf137420.tar
nixpkgs-78dd741ec77cc698596d3520a306fe99cf137420.tar.gz
nixpkgs-78dd741ec77cc698596d3520a306fe99cf137420.tar.bz2
nixpkgs-78dd741ec77cc698596d3520a306fe99cf137420.tar.lz
nixpkgs-78dd741ec77cc698596d3520a306fe99cf137420.tar.xz
nixpkgs-78dd741ec77cc698596d3520a306fe99cf137420.tar.zst
nixpkgs-78dd741ec77cc698596d3520a306fe99cf137420.zip
gensio: 2.1.7 -> 2.2.1
Version bump, add passthru.updateScript, pkg-config and an upstream
patch required for the build.
Diffstat (limited to 'pkgs/development/libraries/gensio/default.nix')
-rw-r--r--pkgs/development/libraries/gensio/default.nix29
1 files changed, 25 insertions, 4 deletions
diff --git a/pkgs/development/libraries/gensio/default.nix b/pkgs/development/libraries/gensio/default.nix
index b3bf33f0e88..a568078f991 100644
--- a/pkgs/development/libraries/gensio/default.nix
+++ b/pkgs/development/libraries/gensio/default.nix
@@ -1,21 +1,42 @@
-{ stdenv, lib, fetchFromGitHub, autoreconfHook }:
+{ autoreconfHook
+, fetchFromGitHub
+, fetchpatch
+, lib
+, nix-update-script
+, pkg-config
+, stdenv
+}:
 
 stdenv.mkDerivation rec {
   pname = "gensio";
-  version = "2.1.7";
+  version = "2.2.1";
 
   src = fetchFromGitHub {
     owner = "cminyard";
     repo = pname;
     rev = "v${version}";
-    sha256 = "07m8rbdk05biarc9xskwcx9lghj0dff1msxasfc6hi3jywc3xaih";
+    sha256 = "083khzvyvcgi9j99hbaswglivm9s6dly6spjvisvyacavaybgwgb";
+  };
+
+  patches =  [
+    # Fix compilation without openipmi, can be dropped for the next release.
+    (fetchpatch {
+      url = "https://github.com/cminyard/gensio/commit/12f6203e6f7aa42172177d7b0870777b605af8d9.patch";
+      sha256 = "19dr4iacccc4il3asdxkag6cj2yc4bxd8p451syfxdm6289rwxic";
+    })
+  ];
+
+  passthru = {
+    updateScript = nix-update-script {
+      attrPath = pname;
+    };
   };
 
   configureFlags = [
     "--with-python=no"
   ];
 
-  buildInputs = [ autoreconfHook ];
+  nativeBuildInputs = [ autoreconfHook pkg-config ];
 
   meta = with lib; {
     description = "General Stream I/O";