1 { stdenv, buildPythonApplication, fetchFromGitHub, fetchpatch, isPyPy, lib
2 , defusedxml, future, ujson, packaging, psutil, setuptools
3 # Optional dependencies:
6 , netifaces # IP module
10 buildPythonApplication rec {
15 src = fetchFromGitHub {
18 rev = "refs/tags/v${version}";
19 hash = "sha256-Ho4vcmTEVja7rkgLSfNkXvnpopYupRxPL1UVlnmdGCg=";
22 # On Darwin this package segfaults due to mismatch of pure and impure
23 # CoreFoundation. This issues was solved for binaries but for interpreted
24 # scripts a workaround below is still required.
25 # Relevant: https://github.com/NixOS/nixpkgs/issues/24693
26 makeWrapperArgs = lib.optionals stdenv.isDarwin [
27 "--set" "DYLD_FRAMEWORK_PATH" "/System/Library/Frameworks"
31 preCheck = lib.optionalString stdenv.isDarwin ''
32 export DYLD_FRAMEWORK_PATH=/System/Library/Frameworks
35 propagatedBuildInputs = [
46 ] ++ lib.optional stdenv.isLinux hddtemp;
49 homepage = "https://nicolargo.github.io/glances/";
50 description = "Cross-platform curses-based monitoring tool";
51 mainProgram = "glances";
52 changelog = "https://github.com/nicolargo/glances/blob/v${version}/NEWS.rst";
53 license = licenses.lgpl3Only;
54 maintainers = with maintainers; [ jonringer primeos koral ];