conmon: 0.0.1pre52_6905a4d -> 0.2.0

Update conmon to v0.2.0 and move it into a dedicated package. Since we
are now using conmon as dedicated package, cri-o does not need to built
it, too.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
Sascha Grunert 2019-05-29 13:33:07 +02:00 committed by Austin Seipp
parent 11d1932f11
commit 3577443b37
4 changed files with 37 additions and 39 deletions

View File

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

View File

@ -41,15 +41,10 @@ buildGoPackage rec {
buildPhase = ''
pushd go/src/${goPackagePath}
# Build conmon and pause
# Build pause
go build -tags ${makeFlags} -o bin/crio-config -buildmode=pie \
-ldflags '-s -w ${ldflags}' ${goPackagePath}/cmd/crio-config
pushd conmon
../bin/crio-config
popd
make -C conmon
make -C pause
# Build the crio binary
@ -60,7 +55,6 @@ buildGoPackage rec {
install -Dm755 bin/crio $bin/bin/crio${flavor}
mkdir -p $bin/libexec/crio
install -Dm755 bin/conmon $bin/libexec/crio/conmon${flavor}
install -Dm755 bin/pause $bin/libexec/crio/pause${flavor}
'';

View File

@ -1,31 +0,0 @@
{ 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;
};
}

View File

@ -5340,7 +5340,6 @@ in
podiff = callPackage ../tools/text/podiff { };
podman = callPackage ../applications/virtualization/podman { };
conmon = callPackage ../applications/virtualization/podman/conmon.nix { };
pod2mdoc = callPackage ../tools/misc/pod2mdoc { };
@ -21358,6 +21357,8 @@ in
confd = callPackage ../tools/system/confd { };
conmon = callPackage ../applications/virtualization/conmon { };
construoBase = lowPrio (callPackage ../games/construo {
libGL = null;
freeglut = null;