1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/networking/network-manager/tray.nix
2020-02-18 15:04:21 +01:00

32 lines
825 B
Nix

{ lib, mkDerivation, fetchFromGitHub, cmake, qttools, qtbase, networkmanager-qt, modemmanager-qt }:
mkDerivation rec {
pname = "nm-tray";
version = "0.4.3";
src = fetchFromGitHub {
owner = "palinek";
repo = pname;
rev = version;
sha256 = "08c86kd613wlvw9571q7a3lb7g6skyyasjw6h1g543rbl4jn2c2v";
};
postPatch = ''
sed -i -e '1i#include <QMetaEnum>' src/nmmodel.cpp
'';
nativeBuildInputs = [ cmake qttools ];
cmakeFlags = [ "-DWITH_MODEMMANAGER_SUPPORT=ON" ];
buildInputs = [ qtbase networkmanager-qt modemmanager-qt ];
meta = with lib; {
description = "Simple Network Manager frontend written in Qt";
homepage = "https://github.com/palinek/nm-tray";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ dtzWill ];
platforms = platforms.linux;
};
}