From 83069476289054bf001b5dfac2d7ea9bc032e157 Mon Sep 17 00:00:00 2001 From: NeverBehave Date: Mon, 6 Jan 2025 03:40:59 +0000 Subject: [PATCH 1/2] wifiman: init at 1.1.0 --- pkgs/by-name/wi/wifiman/package.nix | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pkgs/by-name/wi/wifiman/package.nix diff --git a/pkgs/by-name/wi/wifiman/package.nix b/pkgs/by-name/wi/wifiman/package.nix new file mode 100644 index 0000000000000..5a56f42dfa8f4 --- /dev/null +++ b/pkgs/by-name/wi/wifiman/package.nix @@ -0,0 +1,51 @@ +{ + lib, + stdenv, + fetchurl, + dpkg, + autoPatchelfHook, + libayatana-appindicator, + webkitgtk_4_0, + iw, + nettools +}: + +stdenv.mkDerivation rec { + version = "1.1.0"; + pname = "wifiman"; + + # in case of file change + # https://web.archive.org/web/20250106030049/https://desktop.wifiman.com/wifiman-desktop-1.1.0-amd64.deb + src = fetchurl { + url = "https://desktop.wifiman.com/wifiman-desktop-${version}-amd64.deb"; + hash = "sha256-GH+/lCNDpVO6GNsBqca7K8drLa6jjwtN+esVmfTftsY="; + }; + + nativeBuildInputs = [ + autoPatchelfHook + dpkg + ]; + + # Depends: net-tools, iw, resolvconf, libayatana-appindicator3-1, libwebkit2gtk-4.0-37, libgtk-3-0 + buildInputs = [ + libayatana-appindicator + webkitgtk_4_0 + iw + nettools + ]; + + installPhase = '' + runHook preInstall + mkdir -p $out/bin + mv usr/bin/wi-fiman-desktop $out/bin + runHook postInstall + ''; + + meta = { + homepage = "https://wifiman.com"; + description = "Desktop App for UniFi Device Discovery and Teleport VPN"; + platforms = [ "x86_64-linux" ]; + license = lib.licenses.unfree; + maintainers = [ lib.maintainers.neverbehave ]; + }; +} From 0f4e625878827106587873c085c61e9c18869518 Mon Sep 17 00:00:00 2001 From: NeverBehave Date: Mon, 6 Jan 2025 13:21:23 -0800 Subject: [PATCH 2/2] add gtk --- pkgs/by-name/wi/wifiman/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/wi/wifiman/package.nix b/pkgs/by-name/wi/wifiman/package.nix index 5a56f42dfa8f4..2471f198d5324 100644 --- a/pkgs/by-name/wi/wifiman/package.nix +++ b/pkgs/by-name/wi/wifiman/package.nix @@ -7,7 +7,9 @@ libayatana-appindicator, webkitgtk_4_0, iw, - nettools + nettools, + openresolv, + gtk3 }: stdenv.mkDerivation rec { @@ -24,6 +26,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoPatchelfHook dpkg + openresolv ]; # Depends: net-tools, iw, resolvconf, libayatana-appindicator3-1, libwebkit2gtk-4.0-37, libgtk-3-0 @@ -32,6 +35,7 @@ stdenv.mkDerivation rec { webkitgtk_4_0 iw nettools + gtk3 ]; installPhase = ''