about summary refs log tree commit diff
path: root/pkgs/by-name/co/connman-gtk
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2023-10-08 19:21:31 -0300
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-10-09 17:49:02 -0300
commit24cbd84d52b49122ef7304c3c5374778d5ea2702 (patch)
treeec4fe987fe51117975421f5c795fcd4b3ece7cf6 /pkgs/by-name/co/connman-gtk
parent52058530ce12218dc7beb39db8240d87b081485a (diff)
treewide: move connmanPackages to by-name
Diffstat (limited to 'pkgs/by-name/co/connman-gtk')
-rw-r--r--pkgs/by-name/co/connman-gtk/package.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/by-name/co/connman-gtk/package.nix b/pkgs/by-name/co/connman-gtk/package.nix
new file mode 100644
index 0000000000000..c75254a27b158
--- /dev/null
+++ b/pkgs/by-name/co/connman-gtk/package.nix
@@ -0,0 +1,43 @@
+{ lib, stdenv, fetchFromGitHub, autoconf, automake, intltool, pkg-config,
+gtk3, connman, openconnect, wrapGAppsHook }:
+
+stdenv.mkDerivation rec {
+  pname = "connman-gtk";
+  version = "1.1.1";
+
+  src = fetchFromGitHub {
+    owner = "jgke";
+    repo = "connman-gtk";
+    rev = "v${version}";
+    sha256 = "09k0hx5hxpbykvslv12l2fq9pxdwpd311mxj038hbqzjghcyidyr";
+  };
+
+  nativeBuildInputs = [
+    autoconf
+    automake
+    intltool
+    pkg-config
+    wrapGAppsHook
+  ];
+
+  buildInputs = [
+    gtk3
+    openconnect
+    connman
+  ];
+
+  preConfigure = ''
+    # m4/intltool.m4 is an invalid symbolic link
+    rm m4/intltool.m4
+    ln -s ${intltool}/share/aclocal/intltool.m4 m4/
+    ./autogen.sh
+  '';
+
+  meta = with lib; {
+    description = "GTK GUI for Connman";
+    homepage = "https://github.com/jgke/connman-gtk";
+    license = licenses.gpl2Plus;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.romildo ];
+  };
+}