depot/third_party/nixpkgs/pkgs/tools/system/openipmi/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

29 lines
944 B
Nix

{ stdenv, fetchurl, popt, ncurses, python3, readline, lib }:
stdenv.mkDerivation rec {
pname = "OpenIPMI";
version = "2.0.31";
src = fetchurl {
url = "mirror://sourceforge/openipmi/OpenIPMI-${version}.tar.gz";
sha256 = "05wpkn74nxqp5p6sa2yaf2ajrh8b0gfkb7y4r86lnigz4rvz6lkh";
};
patches = [
# fix assertion when used as a library in collectd
# taken from https://sourceforge.net/p/openipmi/code/ci/d613d279dbce2d5e4594f6fed39653d83af0d99b/
./fix-collectd-assertion.diff
];
buildInputs = [ ncurses popt python3 readline ];
outputs = [ "out" "lib" "dev" "man" ];
meta = with lib; {
homepage = "https://openipmi.sourceforge.io/";
description = "A user-level library that provides a higher-level abstraction of IPMI and generic services";
license = with licenses; [ gpl2Only lgpl2Only ];
platforms = platforms.linux;
maintainers = with maintainers; [ arezvov SuperSandro2000 ];
};
}