* Sync with the trunk.
svn path=/nixpkgs/branches/stdenv-updates/; revision=25244
This commit is contained in:
commit
aceef005c3
@ -384,6 +384,14 @@ let inherit (builtins) head tail trace; in
|
|||||||
echo '${toString (attrByPath ["propagatedBuildInputs"] [] args)}' >\$out/nix-support/propagated-build-inputs
|
echo '${toString (attrByPath ["propagatedBuildInputs"] [] args)}' >\$out/nix-support/propagated-build-inputs
|
||||||
") ["minInit" "defEnsureDir"];
|
") ["minInit" "defEnsureDir"];
|
||||||
|
|
||||||
|
cmakeFlags = "";
|
||||||
|
|
||||||
|
doCmake = fullDepEntry (''
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake -D CMAKE_INSTALL_PREFIX="$out" ${toString cmakeFlags} ..
|
||||||
|
'') ["minInit" "addInputs" "doUnpack"];
|
||||||
|
|
||||||
/*debug = x:(trace x x);
|
/*debug = x:(trace x x);
|
||||||
debugX = x:(trace (toXML x) x);*/
|
debugX = x:(trace (toXML x) x);*/
|
||||||
|
|
||||||
|
@ -36,6 +36,18 @@ stdenv.mkDerivation (
|
|||||||
cp $origSrc/nix-support/hydra-release-name $out/nix-support/hydra-release-name
|
cp $origSrc/nix-support/hydra-release-name $out/nix-support/hydra-release-name
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
failureHook = ''
|
||||||
|
if test -n "$succeedOnFailure"; then
|
||||||
|
if test -n "$keepBuildDirectory"; then
|
||||||
|
KEEPBUILDDIR="$out/`basename $TMPDIR`"
|
||||||
|
header "Copying build directory to $KEEPBUILDDIR"
|
||||||
|
ensureDir $KEEPBUILDDIR
|
||||||
|
cp -vR $TMPDIR/* $KEEPBUILDDIR
|
||||||
|
stopNest
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
// args //
|
// args //
|
||||||
|
57
pkgs/development/libraries/ogre/default.nix
Normal file
57
pkgs/development/libraries/ogre/default.nix
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
x@{builderDefsPackage
|
||||||
|
, mesa, cmake, automake, libtool, autoconf
|
||||||
|
, freetype, freeimage, zziplib, randrproto, libXrandr
|
||||||
|
, libXaw, freeglut, libXt, libpng, boost, ois
|
||||||
|
, xproto, libX11, libXmu, libSM, pkgconfig
|
||||||
|
, libXxf86vm, xf86vidmodeproto, libICE
|
||||||
|
, renderproto, libXrender
|
||||||
|
, ...}:
|
||||||
|
builderDefsPackage
|
||||||
|
(a :
|
||||||
|
let
|
||||||
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||||
|
[];
|
||||||
|
|
||||||
|
buildInputs = map (n: builtins.getAttr n x)
|
||||||
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||||
|
sourceInfo = rec {
|
||||||
|
baseName="ogre";
|
||||||
|
majorVersion="1";
|
||||||
|
minorVersion="7";
|
||||||
|
patchLevel="2";
|
||||||
|
version="${majorVersion}.${minorVersion}.${patchLevel}";
|
||||||
|
name="${baseName}-${version}";
|
||||||
|
project="${baseName}";
|
||||||
|
url="mirror://sourceforge/project/${project}/${baseName}/${majorVersion}.${minorVersion}/${baseName}_src_v${majorVersion}-${minorVersion}-${patchLevel}.tar.bz2";
|
||||||
|
hash="10q8jx842s4aws9py6q67rb4dh5vli5vvg54jl8manjb4f388jh5";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
src = a.fetchurl {
|
||||||
|
url = sourceInfo.url;
|
||||||
|
sha256 = sourceInfo.hash;
|
||||||
|
};
|
||||||
|
|
||||||
|
inherit (sourceInfo) name version;
|
||||||
|
inherit buildInputs;
|
||||||
|
|
||||||
|
/* doConfigure should be removed if not needed */
|
||||||
|
phaseNames = ["doCmake" "doMakeInstall"];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A 3D engine";
|
||||||
|
maintainers = with a.lib.maintainers;
|
||||||
|
[
|
||||||
|
raskin
|
||||||
|
];
|
||||||
|
platforms = with a.lib.platforms;
|
||||||
|
linux;
|
||||||
|
license = "MIT";
|
||||||
|
};
|
||||||
|
passthru = {
|
||||||
|
updateInfo = {
|
||||||
|
downloadPage = "http://www.ogre3d.org/download/source";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}) x
|
||||||
|
|
53
pkgs/development/libraries/ois/default.nix
Normal file
53
pkgs/development/libraries/ois/default.nix
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
x@{builderDefsPackage
|
||||||
|
, autoconf, automake, libtool, m4
|
||||||
|
, libX11, xproto, libXi, inputproto
|
||||||
|
, libXaw, libXmu, libXt
|
||||||
|
, ...}:
|
||||||
|
builderDefsPackage
|
||||||
|
(a :
|
||||||
|
let
|
||||||
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||||
|
[];
|
||||||
|
|
||||||
|
buildInputs = map (n: builtins.getAttr n x)
|
||||||
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||||
|
sourceInfo = rec {
|
||||||
|
baseName="ois";
|
||||||
|
majorVersion="1";
|
||||||
|
minorVersion="3";
|
||||||
|
version="${majorVersion}.${minorVersion}";
|
||||||
|
name="${baseName}-${version}";
|
||||||
|
url="mirror://sourceforge/project/wgois/Source%20Release/${version}/ois_v${majorVersion}-${minorVersion}.tar.gz";
|
||||||
|
hash="18gs6xxhbqb91x2gm95hh1pmakimqim1k9c65h7ah6g14zc7dyjh";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
src = a.fetchurl {
|
||||||
|
url = sourceInfo.url;
|
||||||
|
sha256 = sourceInfo.hash;
|
||||||
|
};
|
||||||
|
|
||||||
|
inherit (sourceInfo) name version;
|
||||||
|
inherit buildInputs;
|
||||||
|
|
||||||
|
phaseNames = ["doConfigure" "doMakeInstall"];
|
||||||
|
|
||||||
|
configureCommand = ''sh bootstrap; sh configure'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Object-oriented C++ input system";
|
||||||
|
maintainers = with a.lib.maintainers;
|
||||||
|
[
|
||||||
|
raskin
|
||||||
|
];
|
||||||
|
platforms = with a.lib.platforms;
|
||||||
|
linux;
|
||||||
|
license = a.lib.licenses.zlib;
|
||||||
|
};
|
||||||
|
passthru = {
|
||||||
|
updateInfo = {
|
||||||
|
downloadPage = "http://sourceforge.net/projects/wgois/files/Source Release/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}) x
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
args: with args;
|
{stdenv, fetchurl, python, pil, pygame, SDL} @ args: with args;
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "thePenguinMachine";
|
name = "thePenguinMachine";
|
||||||
|
|
||||||
@ -7,27 +7,35 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "09ljks8vj75g00h3azc83yllbfsrxwmv1c9g32gylcmsshik0dqv";
|
sha256 = "09ljks8vj75g00h3azc83yllbfsrxwmv1c9g32gylcmsshik0dqv";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [python24 pil pygame SDL];
|
buildInputs = [python pil pygame SDL];
|
||||||
|
|
||||||
configurePhase = "
|
configurePhase = ''
|
||||||
sed -e \"/includes = /aincludes.append('${SDL}/include/SDL')\" -i setup.py;
|
sed -e "/includes = /aincludes.append('${SDL}/include/SDL')" -i setup.py;
|
||||||
sed -e \"/includes = /aincludes.append('${pygame}/include/python2.4')\" -i setup.py;
|
sed -e "/includes = /aincludes.append('$(echo ${pygame}/include/python*)')" -i setup.py;
|
||||||
cat setup.py;
|
cat setup.py;
|
||||||
";
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lgcc_s"
|
||||||
buildPhase = "
|
'';
|
||||||
|
buildPhase = ''
|
||||||
|
sed -e "s/pygame.display.toggle_fullscreen.*/pass;/" -i tpm/Application.py
|
||||||
|
sed -e 's@"Surface"@"pygame.Surface"@' -i src/surfutils.c
|
||||||
python setup.py build;
|
python setup.py build;
|
||||||
python setup.py build_clib;
|
python setup.py build_clib;
|
||||||
python setup.py build_ext;
|
python setup.py build_ext;
|
||||||
python setup.py build_py;
|
python setup.py build_py;
|
||||||
python setup.py build_scripts;
|
python setup.py build_scripts;
|
||||||
";
|
'';
|
||||||
installPhase = "
|
installPhase = ''
|
||||||
python setup.py install --prefix=\${out}
|
python setup.py install --prefix=$out
|
||||||
cp -r . /tmp/tpm-build
|
ensureDir "$out"/share/tpm/
|
||||||
echo 'export PYTHONPATH=$PYTHONPATH:${pygame}/lib/python2.4/site-packages:${pil}/lib/python2.4/site-packages/PIL
|
cp -r . "$out"/share/tpm/build-dir
|
||||||
python ThePenguinMachine.py' >/tmp/tpm-build/tpm.sh;
|
ensureDir "$out/bin"
|
||||||
chmod a+rx /tmp/tpm-build/tpm.sh
|
echo "#! /bin/sh" >> "$out/bin/tpm"
|
||||||
";
|
echo "export PYTHONPATH=\"\$PYTHONPATH:$PYTHONPATH:$(echo ${pil}/lib/python*/site-packages/PIL)\"" >> "$out/bin/tpm"
|
||||||
|
echo "cd \"$out/share/tpm/build-dir\"" >> "$out/bin/tpm"
|
||||||
|
echo "export PYTHONPATH=\"\$PYTHONPATH:$PYTHONPATH:$(echo ${pil}/lib/python*/site-packages/PIL)\"" >> "$out/bin/tpm"
|
||||||
|
echo "${python}/bin/python \"$out\"/share/tpm/build-dir/ThePenguinMachine.py \"\$@\"" >> "$out/bin/tpm"
|
||||||
|
chmod a+x "$out/bin/tpm"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "
|
description = "
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{stdenv, fetchurl, iproute, lzo, openssl, nettools}:
|
{stdenv, fetchurl, iproute, lzo, openssl, nettools}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "openvpn-2.1.1";
|
name = "openvpn-2.1.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://openvpn.net/release/${name}.tar.gz";
|
url = "http://swupdate.openvpn.net/community/releases/${name}.tar.gz";
|
||||||
sha256 = "0hj8cdwgdxfsvjxnw4byys3ij719cg9bl9iadcchayzzymx0s653";
|
sha256 = "1x9aymbk580zp35b7dhhkn29a4chhxnzrxjfmp948bgqvvjpizk7";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ iproute lzo openssl ];
|
buildInputs = [ iproute lzo openssl ];
|
||||||
|
@ -1,21 +1,25 @@
|
|||||||
{ stdenv, fetchurl
|
{ stdenv, fetchurl
|
||||||
, ejabberd ? null, mysql ? null
|
, ejabberd ? null, mysql ? null, postgresql ? null, subversion ? null
|
||||||
, enableApacheWebApplication ? false
|
, enableApacheWebApplication ? false
|
||||||
, enableAxis2WebService ? false
|
, enableAxis2WebService ? false
|
||||||
, enableEjabberdDump ? false
|
, enableEjabberdDump ? false
|
||||||
, enableMySQLDatabase ? false
|
, enableMySQLDatabase ? false
|
||||||
|
, enablePostgreSQLDatabase ? false
|
||||||
|
, enableSubversionRepository ? false
|
||||||
, enableTomcatWebApplication ? false
|
, enableTomcatWebApplication ? false
|
||||||
, catalinaBaseDir ? "/var/tomcat"
|
, catalinaBaseDir ? "/var/tomcat"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert enableMySQLDatabase -> mysql != null;
|
assert enableMySQLDatabase -> mysql != null;
|
||||||
|
assert enablePostgreSQLDatabase -> postgresql != null;
|
||||||
|
assert enableSubversionRepository -> subversion != null;
|
||||||
assert enableEjabberdDump -> ejabberd != null;
|
assert enableEjabberdDump -> ejabberd != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "disnix-activation-scripts-0.2pre24557";
|
name = "disnix-activation-scripts-0.2pre25210";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://hydra.nixos.org/build/774785/download/1/disnix-activation-scripts-0.2pre24557.tar.gz;
|
url = http://hydra.nixos.org/build/816489/download/1/disnix-activation-scripts-0.2pre25210.tar.gz;
|
||||||
sha256 = "16allbni0hwcj9qyg67n4ly4bl09wp32rrds3s1hvq6a2p3a3fg7";
|
sha256 = "1jski4fjz4pmh0knh3rgfkkmc7i2krs164nh0fasbh2radksm0hl";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = if enableEjabberdDump then "export PATH=$PATH:${ejabberd}/sbin" else "";
|
preConfigure = if enableEjabberdDump then "export PATH=$PATH:${ejabberd}/sbin" else "";
|
||||||
@ -25,10 +29,14 @@ stdenv.mkDerivation {
|
|||||||
${if enableAxis2WebService then "--with-axis2" else "--without-axis2"}
|
${if enableAxis2WebService then "--with-axis2" else "--without-axis2"}
|
||||||
${if enableEjabberdDump then "--with-ejabberd" else "--without-ejabberd"}
|
${if enableEjabberdDump then "--with-ejabberd" else "--without-ejabberd"}
|
||||||
${if enableMySQLDatabase then "--with-mysql" else "--without-mysql"}
|
${if enableMySQLDatabase then "--with-mysql" else "--without-mysql"}
|
||||||
|
${if enablePostgreSQLDatabase then "--with-postgresql" else "--without-postgresql"}
|
||||||
|
${if enableSubversionRepository then "--with-subversion" else "--without-subversion"}
|
||||||
${if enableTomcatWebApplication then "--with-tomcat=${catalinaBaseDir}" else "--without-tomcat"}
|
${if enableTomcatWebApplication then "--with-tomcat=${catalinaBaseDir}" else "--without-tomcat"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = []
|
buildInputs = []
|
||||||
++ stdenv.lib.optional enableEjabberdDump ejabberd
|
++ stdenv.lib.optional enableEjabberdDump ejabberd
|
||||||
++ stdenv.lib.optional enableMySQLDatabase mysql;
|
++ stdenv.lib.optional enableMySQLDatabase mysql
|
||||||
|
++ stdenv.lib.optional enablePostgreSQLDatabase postgresql
|
||||||
|
++ stdenv.lib.optional enableSubversionRepository subversion;
|
||||||
}
|
}
|
||||||
|
@ -5,11 +5,11 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "nix-1.0pre25121";
|
name = "nix-1.0pre25179";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://hydra.nixos.org/build/805927/download/4/${name}.tar.bz2";
|
url = "http://hydra.nixos.org/build/811883/download/4/${name}.tar.bz2";
|
||||||
sha256 = "94e619e8b44f1172e71dc86d0aec1a557e76d49609e9a1fccbcea752360e3e97";
|
sha256 = "4a6f7ca69428d24f253f8f199589d25fca1e7146a6591288392423634e3303f7";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ perl curl openssl pkgconfig boehmgc ];
|
buildInputs = [ perl curl openssl pkgconfig boehmgc ];
|
||||||
|
@ -3767,6 +3767,8 @@ let
|
|||||||
ode = builderDefsPackage (import ../development/libraries/ode) {
|
ode = builderDefsPackage (import ../development/libraries/ode) {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ogre = callPackage ../development/libraries/ogre {};
|
||||||
|
|
||||||
openal = callPackage ../development/libraries/openal { };
|
openal = callPackage ../development/libraries/openal { };
|
||||||
|
|
||||||
# added because I hope that it has been easier to compile on x86 (for blender)
|
# added because I hope that it has been easier to compile on x86 (for blender)
|
||||||
@ -3799,6 +3801,8 @@ let
|
|||||||
opensc = opensc_0_11_7;
|
opensc = opensc_0_11_7;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ois = callPackage ../development/libraries/ois {};
|
||||||
|
|
||||||
opal = callPackage ../development/libraries/opal {};
|
opal = callPackage ../development/libraries/opal {};
|
||||||
|
|
||||||
openjpeg = callPackage ../development/libraries/openjpeg { };
|
openjpeg = callPackage ../development/libraries/openjpeg { };
|
||||||
@ -4671,7 +4675,7 @@ let
|
|||||||
|
|
||||||
kbd = callPackage ../os-specific/linux/kbd { };
|
kbd = callPackage ../os-specific/linux/kbd { };
|
||||||
|
|
||||||
libcroup = callPackage ../os-specific/linux/libcg { };
|
libcgroup = callPackage ../os-specific/linux/libcg { };
|
||||||
|
|
||||||
libnl = callPackage ../os-specific/linux/libnl { };
|
libnl = callPackage ../os-specific/linux/libnl { };
|
||||||
|
|
||||||
@ -6901,10 +6905,7 @@ let
|
|||||||
|
|
||||||
tennix = callPackage ../games/tennix { };
|
tennix = callPackage ../games/tennix { };
|
||||||
|
|
||||||
/*tpm = import ../games/thePenguinMachine {
|
tpm = callPackage ../games/thePenguinMachine { };
|
||||||
inherit stdenv fetchurl pil pygame SDL;
|
|
||||||
python24 = python;
|
|
||||||
};*/
|
|
||||||
|
|
||||||
tremulous = callPackage ../games/tremulous { };
|
tremulous = callPackage ../games/tremulous { };
|
||||||
|
|
||||||
@ -7322,6 +7323,8 @@ let
|
|||||||
enableAxis2WebService = getConfig ["disnix" "enableAxis2WebService"] false;
|
enableAxis2WebService = getConfig ["disnix" "enableAxis2WebService"] false;
|
||||||
enableEjabberdDump = getConfig ["disnix" "enableEjabberdDump"] false;
|
enableEjabberdDump = getConfig ["disnix" "enableEjabberdDump"] false;
|
||||||
enableMySQLDatabase = getConfig ["disnix" "enableMySQLDatabase"] false;
|
enableMySQLDatabase = getConfig ["disnix" "enableMySQLDatabase"] false;
|
||||||
|
enablePostgreSQLDatabase = getConfig ["disnix" "enablePostgreSQLDatabase"] false;
|
||||||
|
enableSubversionRepository = getConfig ["disnix" "enableSubversionRepository"] false;
|
||||||
enableTomcatWebApplication = getConfig ["disnix" "enableTomcatWebApplication"] false;
|
enableTomcatWebApplication = getConfig ["disnix" "enableTomcatWebApplication"] false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user