3 buildPythonApplication,
14 # Optional dependencies:
20 netifaces, # IP module
27 buildPythonApplication rec {
32 src = fetchFromGitHub {
35 rev = "refs/tags/v${version}";
36 hash = "sha256-SlKt+wjzI9QRmMVvbIERuhQuCCaOh7L89WuNUXNhkuI=";
39 # On Darwin this package segfaults due to mismatch of pure and impure
40 # CoreFoundation. This issues was solved for binaries but for interpreted
41 # scripts a workaround below is still required.
42 # Relevant: https://github.com/NixOS/nixpkgs/issues/24693
43 makeWrapperArgs = lib.optionals stdenv.hostPlatform.isDarwin [
46 "/System/Library/Frameworks"
50 preCheck = lib.optionalString stdenv.hostPlatform.isDarwin ''
51 export DYLD_FRAMEWORK_PATH=/System/Library/Frameworks
54 propagatedBuildInputs = [
71 ] ++ lib.optional stdenv.hostPlatform.isLinux hddtemp;
74 homepage = "https://nicolargo.github.io/glances/";
75 description = "Cross-platform curses-based monitoring tool";
76 mainProgram = "glances";
77 changelog = "https://github.com/nicolargo/glances/blob/v${version}/NEWS.rst";
78 license = lib.licenses.lgpl3Only;
79 maintainers = with lib.maintainers; [