Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xsos: init at 0.7.19 #147771

Merged
merged 1 commit into from Dec 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
52 changes: 52 additions & 0 deletions pkgs/os-specific/linux/xsos/default.nix
@@ -0,0 +1,52 @@
{ stdenv
, lib
, fetchFromGitHub
, makeWrapper
, installShellFiles
, dmidecode
, ethtool
, pciutils
, multipath-tools
, iproute2
, sysvinit
}:
let
binPath = [
iproute2
dmidecode
ethtool
pciutils
multipath-tools
iproute2
sysvinit
];
in

stdenv.mkDerivation rec {
pname = "xsos";
version = "0.7.19";

src = fetchFromGitHub {
owner = "ryran";
repo = "xsos";
rev = "v${version}";
sha256 = "11cc8z3pz4gl0mwl2fc701mn4cgx50fybygx0rvs9bhvb0jnphay";
};

nativeBuildInputs = [ makeWrapper installShellFiles ];

installPhase = ''
mkdir -p $out/bin
cp -a xsos $out/bin
wrapProgram "$out/bin/xsos" --prefix PATH : ${lib.makeBinPath binPath}
installShellCompletion --bash --name xsos.bash xsos-bash-completion.bash
'';

meta = with lib; {
description = "Summarize system info from sosreports";
homepage = "https://github.com/ryran/xsos";
license = licenses.gpl3;
platforms = [ "i686-linux" "x86_64-linux" ];
maintainers = [ maintainers.nixinator ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -33815,6 +33815,8 @@ with pkgs;

xcfun = callPackage ../development/libraries/science/chemistry/xcfun { };

xsos = callPackage ../os-specific/linux/xsos { };

zesarux = callPackage ../misc/emulators/zesarux { };

zk = callPackage ../applications/office/zk {};
Expand Down