uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
57
pkgs/applications/system/glances/default.nix
Normal file
57
pkgs/applications/system/glances/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ stdenv, buildPythonApplication, fetchFromGitHub, isPyPy, lib
|
||||
, defusedxml, future, packaging, psutil, setuptools
|
||||
# Optional dependencies:
|
||||
, bottle, pysnmp
|
||||
, hddtemp
|
||||
, netifaces # IP module
|
||||
, py-cpuinfo
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "glances";
|
||||
version = "3.2.5";
|
||||
disabled = isPyPy;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nicolargo";
|
||||
repo = "glances";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-kTnUP7WvmEw4VazjLrGb0FhSdz+/OadzgwDXs1SA02o=";
|
||||
};
|
||||
|
||||
# Some tests fail in the sandbox (they e.g. require access to /sys/class/power_supply):
|
||||
patches = lib.optional (doCheck && stdenv.isLinux) ./skip-failing-tests.patch;
|
||||
|
||||
# On Darwin this package segfaults due to mismatch of pure and impure
|
||||
# CoreFoundation. This issues was solved for binaries but for interpreted
|
||||
# scripts a workaround below is still required.
|
||||
# Relevant: https://github.com/NixOS/nixpkgs/issues/24693
|
||||
makeWrapperArgs = lib.optionals stdenv.isDarwin [
|
||||
"--set" "DYLD_FRAMEWORK_PATH" "/System/Library/Frameworks"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
preCheck = lib.optionalString stdenv.isDarwin ''
|
||||
export DYLD_FRAMEWORK_PATH=/System/Library/Frameworks
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bottle
|
||||
defusedxml
|
||||
future
|
||||
netifaces
|
||||
packaging
|
||||
psutil
|
||||
pysnmp
|
||||
setuptools
|
||||
py-cpuinfo
|
||||
] ++ lib.optional stdenv.isLinux hddtemp;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://nicolargo.github.io/glances/";
|
||||
description = "Cross-platform curses-based monitoring tool";
|
||||
changelog = "https://github.com/nicolargo/glances/blob/v${version}/NEWS.rst";
|
||||
license = licenses.lgpl3Only;
|
||||
maintainers = with maintainers; [ jonringer primeos koral ];
|
||||
};
|
||||
}
|
||||
52
pkgs/applications/system/glances/skip-failing-tests.patch
Normal file
52
pkgs/applications/system/glances/skip-failing-tests.patch
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
diff --git a/unitest.py b/unitest.py
|
||||
--- a/unitest.py
|
||||
+++ b/unitest.py
|
||||
@@ -59,6 +59,7 @@ class TestGlances(unittest.TestCase):
|
||||
"""The function is called *every time* before test_*."""
|
||||
print('\n' + '=' * 78)
|
||||
|
||||
+ @unittest.skip("Requires access to /etc/mtab")
|
||||
def test_000_update(self):
|
||||
"""Update stats (mandatory step for all the stats).
|
||||
|
||||
@@ -87,6 +88,7 @@ class TestGlances(unittest.TestCase):
|
||||
for plugin in plugins_to_check:
|
||||
self.assertTrue(plugin in plugins_list)
|
||||
|
||||
+ @unittest.skip("Fails on NixOS")
|
||||
def test_002_system(self):
|
||||
"""Check SYSTEM plugin."""
|
||||
stats_to_check = ['hostname', 'os_name']
|
||||
@@ -97,6 +99,7 @@ class TestGlances(unittest.TestCase):
|
||||
self.assertTrue(stat in stats_grab, msg='Cannot find key: %s' % stat)
|
||||
print('INFO: SYSTEM stats: %s' % stats_grab)
|
||||
|
||||
+ @unittest.skip("Fails on NixOS")
|
||||
def test_003_cpu(self):
|
||||
"""Check CPU plugin."""
|
||||
stats_to_check = ['system', 'user', 'idle']
|
||||
@@ -110,7 +113,7 @@ class TestGlances(unittest.TestCase):
|
||||
self.assertLessEqual(stats_grab[stat], 100)
|
||||
print('INFO: CPU stats: %s' % stats_grab)
|
||||
|
||||
- @unittest.skipIf(WINDOWS, "Load average not available on Windows")
|
||||
+ @unittest.skip("Fails on NixOS")
|
||||
def test_004_load(self):
|
||||
"""Check LOAD plugin."""
|
||||
stats_to_check = ['cpucore', 'min1', 'min5', 'min15']
|
||||
@@ -123,6 +126,7 @@ class TestGlances(unittest.TestCase):
|
||||
self.assertGreaterEqual(stats_grab[stat], 0)
|
||||
print('INFO: LOAD stats: %s' % stats_grab)
|
||||
|
||||
+ @unittest.skip("Fails on NixOS")
|
||||
def test_005_mem(self):
|
||||
"""Check MEM plugin."""
|
||||
stats_to_check = ['available', 'used', 'free', 'total']
|
||||
@@ -135,6 +139,7 @@ class TestGlances(unittest.TestCase):
|
||||
self.assertGreaterEqual(stats_grab[stat], 0)
|
||||
print('INFO: MEM stats: %s' % stats_grab)
|
||||
|
||||
+ @unittest.skip("Fails on NixOS")
|
||||
def test_006_swap(self):
|
||||
"""Check MEMSWAP plugin."""
|
||||
stats_to_check = ['used', 'free', 'total']
|
||||
96
pkgs/applications/system/monitor/default.nix
Normal file
96
pkgs/applications/system/monitor/default.nix
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, nix-update-script
|
||||
, meson
|
||||
, ninja
|
||||
, vala
|
||||
, pkg-config
|
||||
, pantheon
|
||||
, python3
|
||||
, gettext
|
||||
, glib
|
||||
, gtk3
|
||||
, libwnck
|
||||
, libgee
|
||||
, libgtop
|
||||
, libhandy
|
||||
, sassc
|
||||
, udisks2
|
||||
, wrapGAppsHook
|
||||
, libX11
|
||||
, libXext
|
||||
, libXNVCtrl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "monitor";
|
||||
version = "0.13.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stsdc";
|
||||
repo = "monitor";
|
||||
rev = version;
|
||||
sha256 = "sha256-qwx60cp3Q6PL1iwRP+M9Rtmxcis0EByi8fk13H4cXfc=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gettext
|
||||
meson
|
||||
ninja
|
||||
vala
|
||||
pkg-config
|
||||
python3
|
||||
wrapGAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk3
|
||||
pantheon.granite
|
||||
pantheon.wingpanel
|
||||
libgee
|
||||
libgtop
|
||||
libhandy
|
||||
libwnck
|
||||
sassc
|
||||
udisks2
|
||||
libX11
|
||||
libXext
|
||||
libXNVCtrl
|
||||
];
|
||||
|
||||
# Force link against Xext, otherwise build fails with:
|
||||
# ld: /nix/store/...-libXNVCtrl-495.46/lib/libXNVCtrl.a(NVCtrl.o): undefined reference to symbol 'XextAddDisplay'
|
||||
# ld: /nix/store/...-libXext-1.3.4/lib/libXext.so.6: error adding symbols: DSO missing from command line
|
||||
# https://github.com/stsdc/monitor/issues/292
|
||||
NIX_LDFLAGS = "-lXext";
|
||||
|
||||
mesonFlags = [ "-Dindicator-wingpanel=enabled" ];
|
||||
|
||||
postPatch = ''
|
||||
chmod +x meson/post_install.py
|
||||
patchShebangs meson/post_install.py
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script {
|
||||
attrPath = pname;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Manage processes and monitor system resources";
|
||||
longDescription = ''
|
||||
Manage processes and monitor system resources.
|
||||
To use the wingpanel indicator in this application, see the Pantheon
|
||||
section in the NixOS manual.
|
||||
'';
|
||||
homepage = "https://github.com/stsdc/monitor";
|
||||
maintainers = with maintainers; [ xiorcale ] ++ teams.pantheon.members;
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl3Plus;
|
||||
mainProgram = "com.github.stsdc.monitor";
|
||||
};
|
||||
}
|
||||
44
pkgs/applications/system/qjournalctl/default.nix
Normal file
44
pkgs/applications/system/qjournalctl/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, qtbase
|
||||
, qmake
|
||||
, pkg-config
|
||||
, libssh
|
||||
, wrapQtAppsHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "qjournalctl";
|
||||
version = "0.6.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pentix";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0j27cmfq29mwrbjfrrwi6m1grcamhbfhk47xzlfsx5wr2q9m6qkz";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace qjournalctl.pro --replace /usr/ $out/
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
qmake
|
||||
pkg-config
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libssh
|
||||
qtbase
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Qt-based graphical user interface for systemd's journalctl command";
|
||||
homepage = "https://github.com/pentix/qjournalctl";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ dtzWill srgom romildo ];
|
||||
};
|
||||
}
|
||||
32
pkgs/applications/system/systemdgenie/default.nix
Normal file
32
pkgs/applications/system/systemdgenie/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, cmake
|
||||
, extra-cmake-modules
|
||||
, kxmlgui
|
||||
, fetchFromGitLab
|
||||
, kdelibs4support
|
||||
, wrapQtAppsHook
|
||||
}:
|
||||
stdenv.mkDerivation rec{
|
||||
pname = "systemdgenie";
|
||||
version = "0.99.0";
|
||||
src = fetchFromGitLab {
|
||||
domain = "invent.kde.org";
|
||||
repo = "SystemdGenie";
|
||||
owner = "system";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-y+A2OuK1ZooPY5W0SsXEb1aaOAJ2b7QSwiumolmAaR4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake extra-cmake-modules wrapQtAppsHook ];
|
||||
|
||||
buildInputs = [ kxmlgui kdelibs4support ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Systemd management utility";
|
||||
homepage = "https://kde.org";
|
||||
license = licenses.gpl2;
|
||||
maintainers = [ maintainers.pasqui23 ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue