Merge branch 'master' into staging
This commit is contained in:
@@ -52,9 +52,21 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# for some reason libsigrok isn't auto-detected
|
||||
configureFlags =
|
||||
[ "--localstatedir=/var" ] ++
|
||||
stdenv.lib.optional (libsigrok != null) "--with-libsigrok" ++
|
||||
stdenv.lib.optional (python != null) "--with-python=${python}/bin/python";
|
||||
|
||||
# do not create directories in /var during installPhase
|
||||
postConfigure = ''
|
||||
substituteInPlace Makefile --replace '$(mkinstalldirs) $(DESTDIR)$(localstatedir)/' '#'
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
if [ -d $out/share/collectd/java ]; then
|
||||
mv $out/share/collectd/java $out/share/
|
||||
fi
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Daemon which collects system performance statistics periodically";
|
||||
homepage = https://collectd.org;
|
||||
|
||||
@@ -10,6 +10,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patches = [ ./install-vixie-programs.patch ];
|
||||
|
||||
# don't attempt to chmod +s files in the nix store
|
||||
postPatch = ''
|
||||
substituteInPlace makefile.in --replace "rwxs" "rwx"
|
||||
'';
|
||||
|
||||
buildInputs = [ guile which ed ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
@@ -23,6 +23,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postPatch = ''
|
||||
sed -i "s,\(#define RUNIT\) .*,\1 \"$out/bin/runit\"," src/runit.h
|
||||
# usernamespace sandbox of nix seems to conflict with runit's assumptions
|
||||
# about unix users. Therefor skip the check
|
||||
sed -i '/.\/chkshsgr/d' src/Makefile
|
||||
'' + stdenv.lib.optionalString (!static) ''
|
||||
sed -i 's,-static,,g' src/Makefile
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user