nixpkgs/pkgs/applications/virtualization/conmon/default.nix
Sascha Grunert 109362d803
conmon: 2.0.14 -> 2.0.15
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-04-03 09:27:56 +02:00

34 lines
802 B
Nix

{ stdenv
, fetchFromGitHub
, pkg-config
, glib
, glibc
, systemd
}:
stdenv.mkDerivation rec {
pname = "conmon";
version = "2.0.15";
src = fetchFromGitHub {
owner = "containers";
repo = pname;
rev = "v${version}";
sha256 = "1fshcmnfqzbagzcrh5nxw7pi0dd60xpq47a2lzfghklqhl1h0b5i";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ glib systemd ] ++
stdenv.lib.optionals (!stdenv.hostPlatform.isMusl) [ glibc glibc.static ];
installPhase = "install -Dm755 bin/${pname} $out/bin/${pname}";
meta = with stdenv.lib; {
homepage = "https://github.com/containers/conmon";
description = "An OCI container runtime monitor";
license = licenses.asl20;
maintainers = with maintainers; [ vdemeester saschagrunert ];
platforms = platforms.linux;
};
}