Merge branch 'master' into x-updates
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{ stdenv, fetchurl, patchelf, perl, ncurses, expat, python, zlib
|
||||
, xlibs, fontconfig, freetype, unixODBC, alsaLib
|
||||
, xlibs, gtk2, glib, fontconfig, freetype, unixODBC, alsaLib
|
||||
} :
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cudatoolkit-4.2.9";
|
||||
name = "cudatoolkit-5.5.22";
|
||||
|
||||
dontPatchELF = true;
|
||||
dontStrip = true;
|
||||
@@ -11,8 +11,8 @@ stdenv.mkDerivation rec {
|
||||
src =
|
||||
if stdenv.system == "x86_64-linux" then
|
||||
fetchurl {
|
||||
url = http://developer.download.nvidia.com/compute/cuda/4_2/rel/toolkit/cudatoolkit_4.2.9_linux_64_suse11.2.run;
|
||||
sha256 = "1inngzwq520bhpdfrh5bm4cxfyf3hxj94jialjxgviri5bj9hz60";
|
||||
url = http://developer.download.nvidia.com/compute/cuda/5_5/rel/installers/cuda_5.5.22_linux_64.run;
|
||||
sha256 = "b997e1dbe95704e0e806e0cedc5fd370a385351fef565c7bae0917baf3a29aa4";
|
||||
}
|
||||
else throw "cudatoolkit does not support platform ${stdenv.system}";
|
||||
|
||||
@@ -21,13 +21,15 @@ stdenv.mkDerivation rec {
|
||||
runtimeDependencies = [
|
||||
ncurses expat python zlib
|
||||
xlibs.libX11 xlibs.libXext xlibs.libXrender xlibs.libXt xlibs.libXtst xlibs.libXi xlibs.libXext
|
||||
fontconfig freetype unixODBC alsaLib
|
||||
gtk2 glib fontconfig freetype unixODBC alsaLib
|
||||
];
|
||||
|
||||
rpath = "${stdenv.lib.makeLibraryPath runtimeDependencies}:${stdenv.gcc.gcc}/lib64";
|
||||
|
||||
unpackPhase = ''
|
||||
sh $src --keep --noexec
|
||||
cd pkg/run_files
|
||||
sh cuda-linux64-rel-5.5.22-16488124.run --keep --noexec
|
||||
cd pkg
|
||||
'';
|
||||
|
||||
@@ -36,7 +38,7 @@ stdenv.mkDerivation rec {
|
||||
--set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
||||
'{}' \; || true
|
||||
find . -type f -exec patchelf \
|
||||
--set-rpath $rpath:$out/lib:$out/lib64:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \
|
||||
--set-rpath $rpath:$out/jre/lib/amd64/jli:$out/lib:$out/lib64:$out/nvvm/lib:$out/nvvm/lib64:$(cat $NIX_GCC/nix-support/orig-gcc)/lib \
|
||||
--force-rpath \
|
||||
'{}' \; || true
|
||||
'';
|
||||
|
||||
@@ -1,25 +1,28 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gprolog-1.4.1";
|
||||
name = "gprolog-1.4.4";
|
||||
|
||||
src = fetchurl {
|
||||
urls = [
|
||||
"mirror://gnu/gprolog/${name}.tar.gz"
|
||||
"http://www.gprolog.org/${name}.tar.gz"
|
||||
];
|
||||
sha256 = "e2819ed9c426138d3191e4d97ae5121cf97e132eecf102400f87f1e372a05b72";
|
||||
sha256 = "13miyas47bmijmadm68cbvb21n4s156gjafz7kfx9brk9djfkh0q";
|
||||
};
|
||||
|
||||
configurePhase = "cd src ;"
|
||||
+ "./configure --prefix=$out "
|
||||
+ "--with-install-dir=$out/share/${name} "
|
||||
+ "--with-examples-dir=$out/share/doc/${name}/examples "
|
||||
+ "--with-doc-dir=$out/share/doc/${name}";
|
||||
preConfigure = ''
|
||||
cd src
|
||||
configureFlagsArray=(
|
||||
"--with-install-dir=$out"
|
||||
"--without-links-dir"
|
||||
"--with-examples-dir=$out/share/${name}/examples"
|
||||
"--with-doc-dir=$out/share/${name}/doc"
|
||||
)
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
ln -vs "$out/share/${name}/include" "$out/include"
|
||||
ln -vs "$out/share/${name}/lib" "$out/lib"
|
||||
mv -v $out/[A-Z]* $out/gprolog.ico $out/share/${name}/
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
@@ -27,7 +30,7 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
homepage = "http://www.gnu.org/software/gprolog/";
|
||||
description = "GNU Prolog, a free Prolog compiler with constraint solving over finite domains";
|
||||
license = "GPLv2+";
|
||||
license = stdenv.lib.licenses.lgpl3Plus;
|
||||
|
||||
longDescription = ''
|
||||
GNU Prolog is a free Prolog compiler with constraint solving
|
||||
|
||||
Reference in New Issue
Block a user