~aasg/nixexprs

4acc912571a8c1475ffa10e8502b67f3c0853545 — Aluísio Augusto Silva Gonçalves a month ago b61c734
iwgtk: init at 0.4
3 files changed, 39 insertions(+), 0 deletions(-)

A pkgs/applications/networking/iwgtk/default.nix
M pkgs/default.nix
M pkgs/overlay.nix
A pkgs/applications/networking/iwgtk/default.nix => pkgs/applications/networking/iwgtk/default.nix +35 -0
@@ 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;
  };
}

M pkgs/default.nix => pkgs/default.nix +2 -0
@@ 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:

M pkgs/overlay.nix => pkgs/overlay.nix +2 -0
@@ 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);