lxcfs: 2.0.7 -> 2.0.8, add debugBuild option

+8 -3
+8 -3
pkgs/os-specific/linux/lxcfs/default.nix
··· 1 - { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, help2man, fuse, pam }: 2 3 with stdenv.lib; 4 stdenv.mkDerivation rec { 5 - name = "lxcfs-2.0.7"; 6 7 src = fetchFromGitHub { 8 owner = "lxc"; 9 repo = "lxcfs"; 10 rev = name; 11 - sha256 = "1z6d52dc12rcplgc9jdgi3lbxm6ahlsjgs1k8v8kvn261xsq1m0a"; 12 }; 13 14 nativeBuildInputs = [ pkgconfig help2man autoreconfHook ]; 15 buildInputs = [ fuse pam ]; 16 17 configureFlags = [ 18 "--with-init-script=systemd"
··· 1 + { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, help2man, fuse, pam, 2 + debugBuild ? false }: 3 4 with stdenv.lib; 5 stdenv.mkDerivation rec { 6 + name = "lxcfs-2.0.8"; 7 8 src = fetchFromGitHub { 9 owner = "lxc"; 10 repo = "lxcfs"; 11 rev = name; 12 + sha256 = "04dzn6snqgw0znf7a7qdm64400jirip6q8amcx5fmz4705qdqahc"; 13 }; 14 15 nativeBuildInputs = [ pkgconfig help2man autoreconfHook ]; 16 buildInputs = [ fuse pam ]; 17 + 18 + preConfigure = stdenv.lib.optionalString debugBuild '' 19 + sed -i 's,#AM_CFLAGS += -DDEBUG,AM_CFLAGS += -DDEBUG,' Makefile.am 20 + ''; 21 22 configureFlags = [ 23 "--with-init-script=systemd"