3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/virtualization/conmon/default.nix
Sascha Grunert 08fa83ce52 conmon: v2.0.2 -> v2.0.3
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-11-14 16:47:48 +01:00

35 lines
839 B
Nix

{ stdenv
, fetchFromGitHub
, pkgconfig
, glib
, glibc
, systemd
}:
stdenv.mkDerivation rec {
project = "conmon";
name = "${project}-${version}";
version = "2.0.3";
src = fetchFromGitHub {
owner = "containers";
repo = project;
rev = "v${version}";
sha256 = "0xsirdsgq84bsjb1xgzv3pnjhm9l13vwj79zd8rjdd7p28wsxb0y";
};
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;
};
}