home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fbf43d05a307e60cdc53c86f1f1d944c1a241561
parent 56730f74a5036bc1df253efee32e3e5854a75001
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu, 11 Oct 2018 18:56:32 +0200

pkgs: add conmon

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Moverlays/sbr.nix | 3+++
Apkgs/conmon/default.nix | 23+++++++++++++++++++++++
Mpkgs/default.nix | 3+++
3 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/overlays/sbr.nix b/overlays/sbr.nix @@ -3,6 +3,9 @@ self: super: ape = import ../pkgs/ape { inherit (self) stdenv lib buildGoPackage fetchFromGitHub; }; + conmon = import ./conmon { + inherit (self) stdenv lib fetchFromGitHub makeWrapper pkgconfig libtool gcc glib; + }; dobi = import ../pkgs/dobi { inherit (self) stdenv lib buildGoPackage fetchFromGitHub; }; diff --git a/pkgs/conmon/default.nix b/pkgs/conmon/default.nix @@ -0,0 +1,23 @@ +{ stdenv, lib, fetchFromGitHub, makeWrapper, pkgconfig, libtool, gcc, glib }: + +stdenv.mkDerivation rec { + name = "conmon-${version}"; + version = "unstable-2018-10-03"; + rev = "605136242787b6c7e1c7c8233b74a14c9097e510"; + + src = fetchFromGitHub { + owner = "containers"; + repo = "conmon"; + sha256 = "1ks9m4hsv0iflcj62szy6s8ifzvdns0hmhx2cz9mhfa9a7796311"; + inherit rev; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ + makeWrapper libtool gcc glib + ]; + + installPhase = '' + install -D -m 755 bin/conmon $out/bin/conmon + ''; +} diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -6,6 +6,9 @@ in rec { ape = import ./ape { inherit (pkgs) stdenv lib buildGoPackage fetchFromGitHub; }; + conmon = import ./conmon { + inherit (pkgs) stdenv lib fetchFromGitHub makeWrapper pkgconfig libtool gcc glib; + }; dobi = import ./dobi { inherit (pkgs) stdenv lib fetchFromGitHub buildGoPackage; };