lxcfs: 2.0.7 -> 2.0.8, add debugBuild option

This commit is contained in:
Richard Marko 2017-11-02 02:38:39 +01:00
parent 4e26054ff5
commit c75c99f42e

View File

@ -1,19 +1,24 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, help2man, fuse, pam }: { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, help2man, fuse, pam,
debugBuild ? false }:
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "lxcfs-2.0.7"; name = "lxcfs-2.0.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lxc"; owner = "lxc";
repo = "lxcfs"; repo = "lxcfs";
rev = name; rev = name;
sha256 = "1z6d52dc12rcplgc9jdgi3lbxm6ahlsjgs1k8v8kvn261xsq1m0a"; sha256 = "04dzn6snqgw0znf7a7qdm64400jirip6q8amcx5fmz4705qdqahc";
}; };
nativeBuildInputs = [ pkgconfig help2man autoreconfHook ]; nativeBuildInputs = [ pkgconfig help2man autoreconfHook ];
buildInputs = [ fuse pam ]; buildInputs = [ fuse pam ];
preConfigure = stdenv.lib.optionalString debugBuild ''
sed -i 's,#AM_CFLAGS += -DDEBUG,AM_CFLAGS += -DDEBUG,' Makefile.am
'';
configureFlags = [ configureFlags = [
"--with-init-script=systemd" "--with-init-script=systemd"
"--sysconfdir=/etc" "--sysconfdir=/etc"