add nagstamon
This commit is contained in:
parent
b73eed3915
commit
ecfef4074e
3 changed files with 47 additions and 3 deletions
|
@ -17,7 +17,6 @@
|
|||
./roles/mail.nix
|
||||
./roles/vpn.nix
|
||||
./roles/network.nix
|
||||
./roles/private.nix
|
||||
./roles/work.nix
|
||||
];
|
||||
|
||||
|
|
45
packages/nagstamon.nix
Normal file
45
packages/nagstamon.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ stdenv, fetchFromGitHub, python37Packages, wrapQtAppsHook }:
|
||||
|
||||
python37Packages.buildPythonApplication rec {
|
||||
pname = "nagstamon";
|
||||
version = "3.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "foosinn";
|
||||
repo = "Nagstamon";
|
||||
rev = "nixos";
|
||||
sha256 = "0m2hlnz7brcvin451y09l73lghhdjs8zwd7wn7k2ahv3829lksfq";
|
||||
};
|
||||
|
||||
# Test assumes darwin
|
||||
doCheck = false;
|
||||
|
||||
nativeBuildInputs = [ wrapQtAppsHook ];
|
||||
dontWrapQtApps = true;
|
||||
postFixup = ''
|
||||
wrapQtApp $out/bin/nagstamon.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python37Packages; [
|
||||
beautifulsoup4
|
||||
configparser
|
||||
dateutil
|
||||
kerberos
|
||||
keyring
|
||||
lxml
|
||||
psutil
|
||||
pyqt5_with_qtmultimedia
|
||||
requests
|
||||
requests-kerberos
|
||||
xlib
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A status monitor for the desktop";
|
||||
homepage = "https://nagstamon.ifw-dresden.de/";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
inherit version;
|
||||
};
|
||||
}
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
let
|
||||
unstable = import <nixos-unstable> { config.allowUnfree = true; };
|
||||
cloudstation = pkgs.libsForQt5.callPackage (import ../packages/cloudstation.nix) {};
|
||||
bbnagstamon = pkgs.libsForQt5.callPackage (import ../packages/nagstamon.nix) {};
|
||||
in {
|
||||
|
||||
security.pki.certificateFiles = [
|
||||
|
@ -21,8 +22,7 @@ in {
|
|||
astroid
|
||||
cloudstation
|
||||
drone-cli
|
||||
nagstamon
|
||||
python37Packages.pyqt5_with_qtmultimedia # required for nagstamon
|
||||
bbnagstamon
|
||||
unstable.slack
|
||||
unstable.velero
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue