From 4acc912571a8c1475ffa10e8502b67f3c0853545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alu=C3=ADsio=20Augusto=20Silva=20Gon=C3=A7alves?= Date: Sat, 24 Oct 2020 18:01:53 -0300 Subject: [PATCH] iwgtk: init at 0.4 --- .../applications/networking/iwgtk/default.nix | 35 +++++++++++++++++++ pkgs/default.nix | 2 ++ pkgs/overlay.nix | 2 ++ 3 files changed, 39 insertions(+) create mode 100644 pkgs/applications/networking/iwgtk/default.nix diff --git a/pkgs/applications/networking/iwgtk/default.nix b/pkgs/applications/networking/iwgtk/default.nix new file mode 100644 index 0000000..9b67a29 --- /dev/null +++ b/pkgs/applications/networking/iwgtk/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, glib, gtk3, gzip, pkgconfig, wrapGAppsHook }: + +stdenv.mkDerivation rec { + pname = "iwgtk"; + version = "0.4"; + + src = fetchFromGitHub { + owner = "J-Lentz"; + repo = pname; + rev = "v${version}"; + sha256 = "129h7vq9b1r9a5c79hk8d06bj8lgzrnhq55x54hqri9c471jjh0s"; + }; + + nativeBuildInputs = [ glib gzip pkgconfig wrapGAppsHook ]; + buildInputs = [ gtk3 ]; + + makeFlags = [ "prefix=$(out)" ]; + + postInstall = '' + substituteInPlace "$out/share/applications/iwgtk.desktop" --replace "Exec=iwgtk" "Exec=$out/bin/iwgtk" + ''; + + meta = with stdenv.lib; { + description = " Lightweight, graphical wifi management utility for Linux"; + longDescription = '' + iwgtk is a lightweight, graphical wifi management utility for Linux. + It is used to control iwd, with supported functionality similar to that of iwctl. + It is particularly useful in a system where iwd is being used as a standalone network management daemon (i.e., without NetworkManager). + ''; + homepage = "https://github.com/J-Lentz/iwgtk"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ AluisioASG ]; + platforms = platforms.gnu; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index 29591d2..150290c 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -23,6 +23,8 @@ let haunt = callPackage ./applications/misc/haunt { }; + iwgtk = callPackage ./applications/networking/iwgtk { }; + linuxPackages = pkgs.recurseIntoAttrs (linuxPackagesFor pkgs.linux); linuxPackages_latest = pkgs.recurseIntoAttrs (linuxPackagesFor pkgs.linux_latest); linuxPackagesFor = kernel: diff --git a/pkgs/overlay.nix b/pkgs/overlay.nix index 0e80c7e..c9d0669 100644 --- a/pkgs/overlay.nix +++ b/pkgs/overlay.nix @@ -16,6 +16,8 @@ self: super: haunt = super.callPackage ./applications/misc/haunt { }; + iwgtk = super.callPackage ./applications/networking/iwgtk { }; + linuxPackagesFor = kernel: (super.linuxPackagesFor kernel).extend (import ./os-specific/linux/kernel-packages.nix); -- 2.26.2