mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
40 lines
907 B
Nix
40 lines
907 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, linux-doc
|
|
, xorg
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "systeroid";
|
|
version = "0.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "orhun";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-VkkobNYkz8FunyaS6EJpfqOvDdwZJE+P2YTSJCgHZI0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace systeroid-core/src/parsers.rs \
|
|
--replace '"/usr/share/doc/kernel-doc-*/Documentation/*",' '"${linux-doc}/share/doc/linux-doc/*",'
|
|
'';
|
|
|
|
cargoSha256 = "sha256-ulmU33j2edzMA/L4KXiM5M6RhH3MmMAkA2DuHxdj2uk=";
|
|
|
|
buildInputs = [
|
|
xorg.libxcb
|
|
];
|
|
|
|
# tries to access /sys/
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "More powerful alternative to sysctl(8) with a terminal user interface";
|
|
homepage = "https://github.com/orhun/systeroid";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|