about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/virtualization/podman/conmon.nix
blob: 7ddfc2ebab06d72f2f5940a16c47eeebd2f1d985 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, lib, fetchFromGitHub, pkgconfig, glib }:

with lib;

stdenv.mkDerivation rec {
  name = "conmon-${version}";
  version = "unstable-2019-03-19";
  rev = "84c860029893e2e2dd71d62231f009c9dcd3c0b4";

  src = fetchFromGitHub {
    owner = "containers";
    repo = "conmon";
    sha256 = "1ydidl3s7s5rfwk9gx0k80nxcixlilxw61g7x0vqsdy3mkylysv5";
    inherit rev;
  };

  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;
  };
}