summary refs log tree commit diff
path: root/pkgs/os-specific/linux/lxcfs
diff options
context:
space:
mode:
authorRichard Marko <srk@48.io>2017-11-02 02:38:39 +0100
committerRichard Marko <srk@48.io>2017-11-02 03:56:59 +0100
commitc75c99f42e5a4d77839374e2a64977efd9590206 (patch)
treead89ff37c684e3507f8dde63e59f677051380cc8 /pkgs/os-specific/linux/lxcfs
parent4e26054ff541cd9903fd00600ca85bab9131df62 (diff)
downloadnixpkgs-c75c99f42e5a4d77839374e2a64977efd9590206.tar
nixpkgs-c75c99f42e5a4d77839374e2a64977efd9590206.tar.gz
nixpkgs-c75c99f42e5a4d77839374e2a64977efd9590206.tar.bz2
nixpkgs-c75c99f42e5a4d77839374e2a64977efd9590206.tar.lz
nixpkgs-c75c99f42e5a4d77839374e2a64977efd9590206.tar.xz
nixpkgs-c75c99f42e5a4d77839374e2a64977efd9590206.tar.zst
nixpkgs-c75c99f42e5a4d77839374e2a64977efd9590206.zip
lxcfs: 2.0.7 -> 2.0.8, add debugBuild option
Diffstat (limited to 'pkgs/os-specific/linux/lxcfs')
-rw-r--r--pkgs/os-specific/linux/lxcfs/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/os-specific/linux/lxcfs/default.nix b/pkgs/os-specific/linux/lxcfs/default.nix
index c23457c6b5f..8a6b2f8ca8a 100644
--- a/pkgs/os-specific/linux/lxcfs/default.nix
+++ b/pkgs/os-specific/linux/lxcfs/default.nix
@@ -1,19 +1,24 @@
-{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, help2man, fuse, pam }:
+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, help2man, fuse, pam,
+  debugBuild ? false }:
 
 with stdenv.lib;
 stdenv.mkDerivation rec {
-  name = "lxcfs-2.0.7";
+  name = "lxcfs-2.0.8";
 
   src = fetchFromGitHub {
     owner = "lxc";
     repo = "lxcfs";
     rev = name;
-    sha256 = "1z6d52dc12rcplgc9jdgi3lbxm6ahlsjgs1k8v8kvn261xsq1m0a";
+    sha256 = "04dzn6snqgw0znf7a7qdm64400jirip6q8amcx5fmz4705qdqahc";
   };
 
   nativeBuildInputs = [ pkgconfig help2man autoreconfHook ];
   buildInputs = [ fuse pam ];
 
+  preConfigure = stdenv.lib.optionalString debugBuild ''
+    sed -i 's,#AM_CFLAGS += -DDEBUG,AM_CFLAGS += -DDEBUG,' Makefile.am
+  '';
+
   configureFlags = [
     "--with-init-script=systemd"
     "--sysconfdir=/etc"