mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
32 lines
702 B
Nix
32 lines
702 B
Nix
{ stdenv, lib, fetchFromGitHub, pkgconfig, glib }:
|
|
|
|
with lib;
|
|
with builtins;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "conmon";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containers";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "08fgkbv7hq62lcq39za9pm2s2j92ismgrkvfm7acwbvajqh9syjb";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ glib ];
|
|
|
|
installPhase = ''
|
|
install -D -m 555 bin/conmon $out/bin/conmon
|
|
'';
|
|
|
|
meta = {
|
|
homepage = https://github.com/containers/conmon;
|
|
description = "An OCI container runtime monitor";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ vdemeester ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|