1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00

Not yet working nfs-utils with dependency

svn path=/nixpkgs/trunk/; revision=9764
This commit is contained in:
Marc Weber 2007-11-20 15:55:37 +00:00
parent b98c67b1c3
commit 42ee316fcc
3 changed files with 63 additions and 12 deletions

View file

@ -0,0 +1,17 @@
args:
args.stdenv.mkDerivation {
name = "nfs-utils-1.1.1";
src = args.fetchurl {
url = mirror://sourceforge/nfs/nfs-utils-1.1.1.tar.gz;
sha256 = "0aa434cv7lgbrhks0rzhwxvbk2zsa17kjwxqjrrh87zrv9d2sr1x";
};
buildInputs =(with args; [kernelHeaders tcp_wrapper]);
meta = {
description = "nfs utils";
homepage = http://nfs.sourceforge.net/;
license = "GPL2";
};
}

View file

@ -0,0 +1,26 @@
args:
args.stdenv.mkDerivation {
name = "tcp-wrappers-7.6";
src = args.fetchurl {
url = http://ftp.debian.org/debian/pool/main/t/tcp-wrappers/tcp-wrappers_7.6.dbs.orig.tar.gz;
sha256 = "0k68ziinx6biwar5lcb9jvv0rp6b3vmj6861n75bvrz4w1piwkdp";
};
# we need to set REAL_DAEMON_DIR somehow. I'm getting compilation errors
# I've managed to compile tcpd manually using
# make CFLAGS='-DSYS_ERRLIST_DEFINED=1 -Dvsyslog=1' tcpd
# see Makefile target all for details
postUnpack="cd upstream/tarballs; tar xfz *; cd tcp_wrappers_7.6;
sed -i -e 's=#REAL_DAEMON_DIR=/usr/sbin=REAL_DAEMON_DIR=/usr/sbin=' Makefile
";
buildPhase="
make CFLAGS='-DSYS_ERRLIST_DEFINED=1 -Dvsyslog=1' tcpd
"
buildInputs =(with args; [kernelHeaders gnused]);
# meta = ...
}

View file

@ -1192,25 +1192,24 @@ rec {
perl = if !stdenv.isLinux then sysPerl else realPerl;
# FIXME: unixODBC needs patching on Darwin (see darwinports)
php = import ../development/interpreters/php {
inherit stdenv fetchurl flex bison libxml2 apacheHttpd;
unixODBC =
if stdenv.isDarwin then null else unixODBC;
};
#php = import ../development/interpreters/php {
#inherit stdenv fetchurl flex bison libxml2 apacheHttpd;
#unixODBC =
#if stdenv.isDarwin then null else unixODBC;
#};
# FIXME somehow somewhen: We need to recompile php if the ini file changes because the only way to
# tell the apache module where to look for this file is using a compile time flag ;-(
# perhaps this can be done setting php_value in apache don't have time to investigate any further ?
# This expression is a quick hack now. But perhaps it helps you adding the configuration flags you need?
/*
php_unstable = (import ../development/interpreters/php_configurable) {
php = (import ../development/interpreters/php_configurable) {
inherit mkDerivationByConfiguration;
lib = lib_unstable;
stdenv = stdenvUsingSetupNew2;
inherit fetchurl flex bison apacheHttpd mysql; # gettext;
inherit fetchurl flex bison apacheHttpd; # gettext;
mysql = mysql5;
inherit libxml2;
};
*/
python = getVersion "python" python_alts;
@ -2810,9 +2809,11 @@ rec {
inherit fetchurl stdenv;
};
#nfsUtils = import ../os-specific/linux/nfs-utils {
# inherit fetchurl stdenv;
#};
/*
nfsUtils = import ../os-specific/linux/nfs-utils {
inherit fetchurl stdenv kernelHeaders tcp_wrapper;
};
*/
alsaLib = import ../os-specific/linux/alsa/library {
inherit fetchurl stdenv;
@ -3348,6 +3349,13 @@ rec {
withoutInitTools = true;
};
/*
# needed for nfs utils
tcp_wrapper = import ../os-specific/linux/tcp-wrapper {
inherit fetchurl stdenv kernelHeaders gnused;
};
*/
udev = import ../os-specific/linux/udev {
inherit fetchurl stdenv;
};