2021-01-17 04:51:22 +01:00
|
|
|
{ lib, stdenv, fetchpatch, fetchFromGitHub, autoreconfHook, pkg-config, dbus, json_c, ncurses, connman }:
|
2018-02-17 09:38:37 +01:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "connman-ncurses";
|
2018-02-17 09:38:37 +01:00
|
|
|
version = "2015-07-21";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eurogiciel-oss";
|
|
|
|
repo = "connman-json-client";
|
|
|
|
rev = "3c34b2ee62d2e188090d20e7ed2fd94bab9c47f2";
|
|
|
|
sha256 = "1831r0776fv481g8kgy1dkl750pzv47835dw11sslq2k6mm6i9p1";
|
|
|
|
};
|
|
|
|
|
2020-06-18 13:52:13 +02:00
|
|
|
patches = [
|
|
|
|
# Fix build with json-c 0.14
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/void-linux/void-packages/raw/5830ce60e922b7dced8157ededda8c995adb3bb9/srcpkgs/connman-ncurses/patches/lowercase-boolean.patch";
|
|
|
|
extraPrefix = "";
|
|
|
|
sha256 = "uK83DeRyXS2Y0ZZpTYvYNh/1ZM2QQ7QpajiBztaEuSM=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2018-02-17 09:38:37 +01:00
|
|
|
|
|
|
|
buildInputs = [ dbus ncurses json_c connman ];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
2020-06-18 13:52:13 +02:00
|
|
|
|
2018-02-17 09:38:37 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
cp -va connman_ncurses "$out/bin/"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-02-17 09:38:37 +01:00
|
|
|
description = "Simple ncurses UI for connman";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/eurogiciel-oss/connman-json-client";
|
2018-02-17 09:38:37 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|