mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
7aba727c0d
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
35 lines
839 B
Nix
35 lines
839 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, pkgconfig
|
|
, glib
|
|
, glibc
|
|
, systemd
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
project = "conmon";
|
|
name = "${project}-${version}";
|
|
version = "2.0.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containers";
|
|
repo = project;
|
|
rev = "v${version}";
|
|
sha256 = "17pv80ba79wh4nwxy3wl0vl1m8054s346hgcp87iy3mpnrvq2cv2";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ glib systemd ] ++
|
|
stdenv.lib.optionals (!stdenv.hostPlatform.isMusl) [ glibc glibc.static ];
|
|
|
|
installPhase = "install -Dm755 bin/${project} $out/bin/${project}";
|
|
|
|
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;
|
|
};
|
|
}
|