~aasg/nixexprs

ref: 4acc912571a8c1475ffa10e8502b67f3c0853545 nixexprs/pkgs/applications/networking/iwgtk/default.nix -rw-r--r-- 1.2 KiB
4acc9125 — Aluísio Augusto Silva Gonçalves iwgtk: init at 0.4 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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;
  };
}