nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 39 lines 905 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, linux-doc 5, xorg 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "systeroid"; 10 version = "0.4.1"; 11 12 src = fetchFromGitHub { 13 owner = "orhun"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "sha256-1qZ0vryWFGoIC3gdgJv6HolqCV8fogAZnjGHYnbP8Es="; 17 }; 18 19 postPatch = '' 20 substituteInPlace systeroid-core/src/parsers.rs \ 21 --replace '"/usr/share/doc/kernel-doc-*/Documentation/*",' '"${linux-doc}/share/doc/linux-doc/*",' 22 ''; 23 24 cargoHash = "sha256-aWkWufHZaAmebdDdrgrIbQrSSzj/RgymQ4hOkGtY2Zc="; 25 26 buildInputs = [ 27 xorg.libxcb 28 ]; 29 30 # tries to access /sys/ 31 doCheck = false; 32 33 meta = with lib; { 34 description = "More powerful alternative to sysctl(8) with a terminal user interface"; 35 homepage = "https://github.com/orhun/systeroid"; 36 license = licenses.asl20; 37 maintainers = with maintainers; [ SuperSandro2000 ]; 38 }; 39}