ser2net: 4.2.1 -> 4.3.0

Version bump, organize inputs and add passthru.updateScript.
This commit is contained in:
Rouven Czerwinski 2021-01-04 11:13:57 +01:00
parent 78dd741ec7
commit 2faf844d83

View File

@ -1,17 +1,33 @@
{ stdenv, lib, fetchFromGitHub, gensio, libyaml, autoreconfHook, pkgconfig }:
{ autoreconfHook
, fetchFromGitHub
, gensio
, lib
, libyaml
, nix-update-script
, pkg-config
, stdenv
}:
stdenv.mkDerivation rec {
pname = "ser2net";
version = "4.2.1";
version = "4.3.0";
src = fetchFromGitHub {
owner = "cminyard";
repo = pname;
rev = "v${version}";
sha256 = "01w82nrgffsfz2c80p4cyppg3bz56d90jm6i6356j0nva3784haw";
sha256 = "13zhds3zav03f1snc4bb1j07i2x606bmnqm17yx37frib2hjs4nx";
};
buildInputs = [ pkgconfig autoreconfHook gensio libyaml ];
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = [ gensio libyaml ];
meta = with lib; {
description = "Serial to network connection server";