Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifiman: init at 1.1.0 #371556

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions pkgs/by-name/wi/wifiman/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
lib,
stdenv,
fetchurl,
dpkg,
autoPatchelfHook,
libayatana-appindicator,
webkitgtk_4_0,
iw,
nettools,
openresolv,
gtk3
}:

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
openresolv
];

# Depends: net-tools, iw, resolvconf, libayatana-appindicator3-1, libwebkit2gtk-4.0-37, libgtk-3-0
buildInputs = [
libayatana-appindicator
webkitgtk_4_0
iw
nettools
gtk3
];

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 ];
};
}
Loading