Updating from trunk.
svn path=/nixpkgs/branches/stdenv-updates/; revision=19654
This commit is contained in:
commit
bcba809460
@ -5,6 +5,29 @@
|
||||
<title>Nixpkgs Release Notes</title>
|
||||
|
||||
|
||||
<section><title>Release 0.13 (Januari NNN, 2010)</title>
|
||||
|
||||
<para>As always, there are many changes. Some of the most important
|
||||
updates are:
|
||||
|
||||
<itemizedlist>
|
||||
|
||||
<listitem><para>Glibc 2.9.</para></listitem>
|
||||
|
||||
<listitem><para>GCC 4.3.3.</para></listitem>
|
||||
|
||||
<listitem><para>Linux 2.6.32.</para></listitem>
|
||||
|
||||
<listitem><para>X.org 7.5.</para></listitem>
|
||||
|
||||
<listitem><para>KDE 4.3.4.</para></listitem>
|
||||
|
||||
</itemizedlist>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
<section><title>Release 0.12 (April 24, 2009)</title>
|
||||
|
||||
<para>There are way too many additions to Nixpkgs since the last
|
||||
|
25
pkgs/applications/graphics/digikam/default.nix
Normal file
25
pkgs/applications/graphics/digikam/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{stdenv, fetchurl, kdelibs, exiv2, libXt, libXext, zlib, libjpeg, perl, qt3,
|
||||
libpng, expat, cmake }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "digikam-1.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/digikam/digikam-1.0.0.tar.bz2;
|
||||
sha256 = "0qblqyjn0vas8hyqn5s9rr401d93cagk53y3j8kch0mr0bk706bk";
|
||||
};
|
||||
|
||||
/*
|
||||
configurePhase = ''
|
||||
LDFLAGS="$LDFLAGS -ljpeg" ./configure --without-arts --prefix=$out
|
||||
'';
|
||||
*/
|
||||
|
||||
buildInputs = [ kdelibs exiv2 libXt libXext zlib libjpeg perl qt3 libpng expat cmake ];
|
||||
|
||||
meta = {
|
||||
homepage = http://digikam.sourceforge.net/;
|
||||
description = "KDE 3.x photo viewer";
|
||||
# license = "GPLv2+";
|
||||
};
|
||||
}
|
@ -1,21 +1,36 @@
|
||||
{stdenv, fetchurl, qt, bzip2}:
|
||||
{stdenv, fetchurl, qt, bzip2, lib3ds, levmar, muparser, unzip}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "meshlab-1.2.0";
|
||||
stdenv.mkDerivation rec {
|
||||
name = "meshlab-1.2.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/meshlab/MeshLabSrc_v120.tgz;
|
||||
sha256 = "0iidp2pzwq96v8zbm8gc67wi1f41anpkncp17ajkv1rrh653nila";
|
||||
url = mirror://sourceforge/meshlab/MeshLabSrc_v122.tar.gz;
|
||||
sha256 = "166a8mx72wf3r84pnpr0ssqkd2xw6y5brviywlj8rjk6w9cy8fdc";
|
||||
};
|
||||
|
||||
srcGlew151 = fetchurl {
|
||||
url = http://dfn.dl.sourceforge.net/sourceforge/glew/glew-1.5.1-src.tgz;
|
||||
sha256 = "02n1p6s6sia92fgng9iq0kqq890rga8d8g0y34mc6qxmbh43vrl9";
|
||||
};
|
||||
|
||||
srcQHull20031 = fetchurl {
|
||||
url = http://www.qhull.org/download/qhull-2003.1.zip;
|
||||
sha256 = "07mh371i6xs691qz6wwzkqk9h0d2dkih2q818is2b041w1l79b46";
|
||||
};
|
||||
|
||||
|
||||
setSourceRoot = "sourceRoot=`pwd`/meshlab/src";
|
||||
patchPhase = ''
|
||||
cd meshlab/src
|
||||
mkdir external
|
||||
pushd external
|
||||
tar xf ${srcGlew151}
|
||||
mv glew glew-1.5.1
|
||||
unzip ${srcQHull20031}
|
||||
popd
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
pushd external
|
||||
qmake -recursive external.pro
|
||||
make
|
||||
popd
|
||||
pwd
|
||||
qmake -recursive meshlabv12.pro
|
||||
make
|
||||
'';
|
||||
@ -28,11 +43,13 @@ stdenv.mkDerivation {
|
||||
ln -s $out/opt/meshlab/meshlab $out/bin/meshlab
|
||||
'';
|
||||
|
||||
buildInputs = [ qt bzip2 ];
|
||||
buildInputs = [ qt bzip2 lib3ds levmar muparser unzip ];
|
||||
|
||||
meta = {
|
||||
description = "System for the processing and editing of unstructured 3D triangular meshes";
|
||||
homepage = http://meshlab.sourceforge.net/;
|
||||
license = "GPLv2+";
|
||||
maintainers = with stdenv.lib.maintainers; [viric];
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
};
|
||||
}
|
||||
|
41
pkgs/applications/graphics/rawtherapee/default.nix
Normal file
41
pkgs/applications/graphics/rawtherapee/default.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{ stdenv, fetchsvn, pkgconfig, gtk, cmake, pixman, libpthreadstubs, gtkmm, libXau,
|
||||
libXdmcp, lcms, libiptcdata
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "rawtherapee-svn-25";
|
||||
|
||||
src = fetchsvn {
|
||||
url = "http://rawtherapee.googlecode.com/svn/trunk";
|
||||
rev = 25;
|
||||
sha256 = "09jg47rs09lly70x1zlrb3qcwi2rry1m7gjzs39iqzp53hi9j9mh";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig gtk cmake pixman libpthreadstubs gtkmm libXau libXdmcp
|
||||
lcms libiptcdata ];
|
||||
|
||||
# Rawtherapee died if the default setting for the icc directory pointed to a
|
||||
# non existant place
|
||||
patchPhase = ''
|
||||
sed -i s,/usr/share/color/icc,/tmp/, rtgui/options.cc
|
||||
'';
|
||||
|
||||
# Disable the use of the RAWZOR propietary libraries
|
||||
cmakeFlags = [ "-DWITH_RAWZOR=OFF" ];
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/bin $out/lib
|
||||
cp rtgui/rt $out/bin
|
||||
# Weird kind of path reference
|
||||
cp -r ../release/* $out/bin
|
||||
cp rtengine/*.so $out/lib
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "RAW converter and digital photo processing software";
|
||||
homepage = http://www.rawtherapee.com/;
|
||||
license = "GPLv3+";
|
||||
maintainers = with stdenv.lib.maintainers; [viric];
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
};
|
||||
}
|
83
pkgs/applications/graphics/rawtherapee/optional-rawzor.patch
Normal file
83
pkgs/applications/graphics/rawtherapee/optional-rawzor.patch
Normal file
@ -0,0 +1,83 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,5 +1,7 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
+option (WITH_RAWZOR "Build with Rawzor support" ON)
|
||||
+
|
||||
add_subdirectory (rtexif)
|
||||
add_subdirectory (rtengine)
|
||||
add_subdirectory (rtgui)
|
||||
--- a/rtengine/CMakeLists.txt
|
||||
+++ b/rtengine/CMakeLists.txt
|
||||
@@ -9,9 +9,13 @@
|
||||
IF (WIN32)
|
||||
SET (EXTRA_LIBDIR "${CMAKE_CURRENT_SOURCE_DIR}/../lib; ${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_win")
|
||||
SET (EXTRA_INCDIR "${CMAKE_CURRENT_SOURCE_DIR}/../winclude; ${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_win")
|
||||
- SET (EXTRA_LIB "ws2_32 ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libiptcdata.a ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libjpeg.a ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libpng.a ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libtiff.a ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libz.a ${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_win/rwz_sdk_s.a")
|
||||
+ SET (EXTRA_LIB "ws2_32 ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libiptcdata.a ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libjpeg.a ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libpng.a ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libtiff.a ${CMAKE_CURRENT_SOURCE_DIR}/../lib/libz.a")
|
||||
+ if (WITH_RAWZOR)
|
||||
ADD_DEFINITIONS (-DRAWZOR_SUPPORT)
|
||||
+ SET (EXTRA_LIB "${EXTRA_LIB} ${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_win/rwz_sdk_s.a")
|
||||
+ endif (WITH_RAWZOR)
|
||||
ELSE (WIN32)
|
||||
+ if (WITH_RAWZOR)
|
||||
IF (CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
SET (EXTRA_INCDIR "${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_lin32")
|
||||
SET (EXTRA_LIBDIR "${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_lin32")
|
||||
@@ -19,10 +23,11 @@
|
||||
SET (EXTRA_INCDIR "${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_lin64")
|
||||
SET (EXTRA_LIBDIR "${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_lin64")
|
||||
ENDIF (CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
- pkg_check_modules (IPTCDATA REQUIRED libiptcdata)
|
||||
- pkg_check_modules (LCMS REQUIRED lcms)
|
||||
SET (EXTRA_LIB "-lrwz_sdk")
|
||||
ADD_DEFINITIONS (-DRAWZOR_SUPPORT)
|
||||
+ endif (WITH_RAWZOR)
|
||||
+ pkg_check_modules (IPTCDATA REQUIRED libiptcdata)
|
||||
+ pkg_check_modules (LCMS REQUIRED lcms)
|
||||
ENDIF (WIN32)
|
||||
|
||||
include_directories (${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../rtexif ${EXTRA_INCDIR} ${GTHREAD_INCLUDE_DIRS} ${GOBJECT_INCLUDE_DIRS} ${GLIB2_INCLUDE_DIRS} ${GLIBMM_INCLUDE_DIRS} ${IPTCDATA_INCLUDE_DIRS} ${LCMS_INCLUDE_DIRS})
|
||||
--- a/rtengine/imagedata.cc
|
||||
+++ b/rtengine/imagedata.cc
|
||||
@@ -19,7 +19,9 @@
|
||||
#include <imagedata.h>
|
||||
#include <iptcpairs.h>
|
||||
#include <glib/gstdio.h>
|
||||
+#ifdef RAWZOR_SUPPORT
|
||||
#include <rwz_sdk.h>
|
||||
+#endif
|
||||
|
||||
using namespace rtengine;
|
||||
|
||||
--- a/rtengine/myfile.cc
|
||||
+++ b/rtengine/myfile.cc
|
||||
@@ -19,7 +19,9 @@
|
||||
#include <myfile.h>
|
||||
#include <cstdarg>
|
||||
#include <glibmm.h>
|
||||
+#ifdef RAWZOR_SUPPORT
|
||||
#include <rwz_sdk.h>
|
||||
+#endif
|
||||
|
||||
IMFILE* fopen (const char* fname) {
|
||||
|
||||
--- a/rtgui/CMakeLists.txt
|
||||
+++ b/rtgui/CMakeLists.txt
|
||||
@@ -75,6 +75,7 @@
|
||||
if (NOT ZLIB_LIBRARIES)
|
||||
message(SEND_ERROR "libz was not found!")
|
||||
endif (NOT ZLIB_LIBRARIES)
|
||||
+ if (WITH_RAWZOR)
|
||||
IF (CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
SET (EXTRA_INCDIR "${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_lin32")
|
||||
SET (EXTRA_LIBDIR "${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_lin32")
|
||||
@@ -82,6 +83,7 @@
|
||||
SET (EXTRA_INCDIR "${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_lin64")
|
||||
SET (EXTRA_LIBDIR "${CMAKE_CURRENT_SOURCE_DIR}/../rawzor_lin64")
|
||||
ENDIF (CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
+ endif (WITH_RAWZOR)
|
||||
|
||||
include_directories (/usr/local/lib ${CMAKE_CURRENT_SOURCE_DIR}/../rtengine . ${CMAKE_CURRENT_SOURCE_DIR}/../rtexif ${EXTRA_INCDIR} ${GLIB2_INCLUDE_DIRS} ${GLIBMM_INCLUDE_DIRS}
|
||||
${GTK_INCLUDE_DIRS} ${GTKMM_INCLUDE_DIRS} ${GIO_INCLUDE_DIRS} ${GIOMM_INCLUDE_DIRS} ${IPTCDATA_INCLUDE_DIRS} ${LCMS_INCLUDE_DIRS} ${GTHREAD_INCLUDE_DIRS} ${GOBJECT_INCLUDE_DIRS} )
|
21
pkgs/applications/misc/epdfview/default.nix
Normal file
21
pkgs/applications/misc/epdfview/default.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ stdenv, fetchurl, pkgconfig, gtk, poppler }:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "epdfview-0.1.7";
|
||||
src = fetchurl {
|
||||
url = "http://trac.emma-soft.com/epdfview/chrome/site/releases/${name}.tar.bz2";
|
||||
sha256 = "1s2af09ij5jjqryv4dl10flsdk5p953qp94dymn93fnl93rv1yqa";
|
||||
};
|
||||
buildInputs = [ pkgconfig gtk poppler ];
|
||||
meta = {
|
||||
homepage = http://trac.emma-soft.com/epdfview/;
|
||||
description = "A lightweight PDF document viewer using Poppler and GTK+";
|
||||
longDescription = ''
|
||||
ePDFView is a free lightweight PDF document viewer using Poppler and
|
||||
GTK+ libraries. The aim of ePDFView is to make a simple PDF document
|
||||
viewer, in the lines of Evince but without using the Gnome libraries.
|
||||
'';
|
||||
license = "GPLv2";
|
||||
maintainers = with stdenv.lib.maintainers; [ astsmtl ];
|
||||
platforms = with stdenv.lib.platforms; linux;
|
||||
};
|
||||
}
|
@ -6,12 +6,12 @@
|
||||
, extraUtils ? []
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ikiwiki_3.20091009";
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ikiwiki_3.20100102.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://ftp.de.debian.org/debian/pool/main/i/ikiwiki/ikiwiki_3.20091009.tar.gz;
|
||||
sha256 = "1iznyiypsnhga71s31782j3rf52fyvxrcys3nfpcr8yg1a5zadpn";
|
||||
url = "http://ftp.de.debian.org/debian/pool/main/i/ikiwiki/${name}.tar.gz";
|
||||
sha256 = "0vb54z7hwb6iwd0j96vhr8ypzwc8l4hd98wbp5wsxkx5bgc38nsp";
|
||||
};
|
||||
|
||||
buildInputs = [ perl TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate
|
||||
|
@ -1,10 +1,10 @@
|
||||
args: with args;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "pstree-2.32";
|
||||
name = "pstree-2.33";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://fresh.t-systems-sfr.com/unix/src/misc/${name}.tar.gz";
|
||||
sha256 = "0k5r6alnc0ch3frvl5bhh2vi91m6aik10pnjfl86qwkdwsr303az";
|
||||
url = "http://www.sfr-fresh.com/unix/misc/${name}.tar.gz";
|
||||
sha256 = "1469lrhpy6wghlvbjx6lmvh27rakq00x11cpz4n965fg11i121hg";
|
||||
};
|
||||
|
||||
unpackPhase="unpackFile \$src; sourceRoot=.";
|
||||
|
@ -1,35 +0,0 @@
|
||||
source $stdenv/setup
|
||||
|
||||
postInstall() {
|
||||
|
||||
# Strip some more stuff
|
||||
strip -S $out/lib/*/* || true
|
||||
|
||||
# Fix some references to /bin paths in the Firefox shell script.
|
||||
substituteInPlace $out/bin/firefox \
|
||||
--replace /bin/pwd "$(type -tP pwd)" \
|
||||
--replace /bin/ls "$(type -tP ls)"
|
||||
|
||||
# This fixes starting Firefox when there already is a running
|
||||
# instance. The `firefox' wrapper script actually expects to be
|
||||
# in the same directory as `run-mozilla.sh', apparently.
|
||||
libDir=$(cd $out/lib && ls -d firefox-*)
|
||||
test -n "$libDir"
|
||||
cd $out/bin
|
||||
mv firefox ../lib/$libDir/
|
||||
ln -s ../lib/$libDir/firefox .
|
||||
|
||||
# Register extensions etc.
|
||||
echo "running firefox -register..."
|
||||
(cd $out/lib/$libDir && LD_LIBRARY_PATH=. ./firefox-bin -register) || false
|
||||
|
||||
echo "running regxpcom..."
|
||||
(cd $out/lib/$libDir && LD_LIBRARY_PATH=. ./regxpcom) || false
|
||||
|
||||
# Put the Firefox icon in the right place.
|
||||
ensureDir $out/lib/$libDir/chrome/icons/default
|
||||
ln -s ../../../icons/default.xpm $out/lib/$libDir/chrome/icons/default/
|
||||
|
||||
}
|
||||
|
||||
genericBuild
|
@ -1,57 +0,0 @@
|
||||
{ stdenv, fetchurl, pkgconfig, gtk, perl, zip, libIDL, libXi
|
||||
, libjpeg, libpng, zlib, cairo
|
||||
|
||||
, # If you want the resulting program to call itself "Firefox" instead
|
||||
# of "Deer Park", enable this option. However, those binaries may
|
||||
# not be distributed without permission from the Mozilla Foundation,
|
||||
# see http://www.mozilla.org/foundation/trademarks/.
|
||||
enableOfficialBranding ? false
|
||||
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "firefox-2.0.0.20";
|
||||
|
||||
builder = ./2.0-builder.sh;
|
||||
|
||||
src = fetchurl {
|
||||
url = http://releases.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.20/source/firefox-2.0.0.20-source.tar.bz2;
|
||||
sha1 = "16601fdbbb0a83b85fd053e76350f7da397f525e";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig gtk perl zip libIDL libXi libjpeg libpng zlib cairo
|
||||
];
|
||||
|
||||
patches = [
|
||||
./writable-copies.patch
|
||||
# Ugh, inexplicable problem since GTK+ 2.10. Probably a Firefox
|
||||
# bug, but I don't know. See
|
||||
# http://lists.gobolinux.org/pipermail/gobolinux-users/2007-January/004344.html
|
||||
./xlibs.patch
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-application=browser"
|
||||
"--enable-optimize"
|
||||
"--disable-debug"
|
||||
"--enable-xft"
|
||||
"--disable-freetype2"
|
||||
"--enable-svg"
|
||||
"--enable-canvas"
|
||||
"--enable-strip"
|
||||
"--enable-default-toolkit=gtk2"
|
||||
"--with-system-jpeg"
|
||||
"--with-system-png"
|
||||
"--with-system-zlib"
|
||||
"--enable-system-cairo"
|
||||
]
|
||||
++ (if enableOfficialBranding then ["--enable-official-branding"] else []);
|
||||
|
||||
meta = {
|
||||
description = "Mozilla Firefox - the browser, reloaded";
|
||||
homepage = http://www.mozilla.com/en-US/firefox/;
|
||||
};
|
||||
|
||||
passthru = {inherit gtk;};
|
||||
}
|
@ -1,24 +1,25 @@
|
||||
{ stdenv, fetchurl, pkgconfig, gtk, pango, perl, python, zip, libIDL
|
||||
, libjpeg, libpng, zlib, cairo, dbus, dbus_glib, bzip2, xlibs
|
||||
, freetype, fontconfig, file
|
||||
, freetype, fontconfig, file, alsaLib, nspr, nss, libnotify
|
||||
|
||||
, # If you want the resulting program to call itself "Firefox" instead
|
||||
# of "Deer Park", enable this option. However, those binaries may
|
||||
# not be distributed without permission from the Mozilla Foundation,
|
||||
# see http://www.mozilla.org/foundation/trademarks/.
|
||||
# of "Shiretoko" or whatever, enable this option. However, those
|
||||
# binaries may not be distributed without permission from the
|
||||
# Mozilla Foundation, see
|
||||
# http://www.mozilla.org/foundation/trademarks/.
|
||||
enableOfficialBranding ? false
|
||||
}:
|
||||
|
||||
rec {
|
||||
|
||||
firefoxVersion = "3.0.17";
|
||||
firefoxVersion = "3.6";
|
||||
|
||||
xulVersion = "1.9.0.17"; # this attribute is used by other packages
|
||||
xulVersion = "1.9.2"; # this attribute is used by other packages
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${firefoxVersion}/source/firefox-${firefoxVersion}-source.tar.bz2";
|
||||
sha1 = "e4bb7daae1699f3493936ca6739512d28c7f150f";
|
||||
url = "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${firefoxVersion}/source/firefox-${firefoxVersion}.source.tar.bz2";
|
||||
sha1 = "33226b45a0bcd795545a980cab475c5492f0ea69";
|
||||
};
|
||||
|
||||
|
||||
@ -29,10 +30,14 @@ rec {
|
||||
"--with-system-jpeg"
|
||||
"--with-system-zlib"
|
||||
"--with-system-bz2"
|
||||
"--with-system-nspr"
|
||||
#"--with-system-nss"
|
||||
# "--with-system-png" # <-- "--with-system-png won't work because the system's libpng doesn't have APNG support"
|
||||
"--enable-system-cairo"
|
||||
#"--enable-system-sqlite" # <-- this seems to be discouraged
|
||||
"--disable-crashreporter"
|
||||
"--disable-tests"
|
||||
"--disable-necko-wifi" # maybe we want to enable this at some point
|
||||
];
|
||||
|
||||
|
||||
@ -45,6 +50,7 @@ rec {
|
||||
[ pkgconfig gtk perl zip libIDL libjpeg libpng zlib cairo bzip2
|
||||
python dbus dbus_glib pango freetype fontconfig xlibs.libXi
|
||||
xlibs.libX11 xlibs.libXrender xlibs.libXft xlibs.libXt file
|
||||
alsaLib nspr /* nss */ libnotify
|
||||
];
|
||||
|
||||
configureFlags =
|
||||
@ -52,11 +58,14 @@ rec {
|
||||
"--disable-javaxpcom"
|
||||
] ++ commonConfigureFlags;
|
||||
|
||||
# !!! Temporary hack.
|
||||
preBuild = ''
|
||||
export NIX_ENFORCE_PURITY=
|
||||
'';
|
||||
|
||||
installFlags = "SKIP_GRE_REGISTRATION=1";
|
||||
|
||||
postInstall = ''
|
||||
export dontPatchELF=1
|
||||
|
||||
# Fix some references to /bin paths in the Xulrunner shell script.
|
||||
substituteInPlace $out/bin/xulrunner \
|
||||
--replace /bin/pwd "$(type -tP pwd)" \
|
||||
@ -75,7 +84,7 @@ rec {
|
||||
ln -s $i $out/bin
|
||||
fi;
|
||||
done;
|
||||
rm $out/bin/run-mozilla.sh || true
|
||||
rm -f $out/bin/run-mozilla.sh
|
||||
''; # */
|
||||
|
||||
meta = {
|
||||
@ -88,13 +97,13 @@ rec {
|
||||
|
||||
|
||||
firefox = stdenv.mkDerivation rec {
|
||||
name = "firefox-3.0.11";
|
||||
name = "firefox-${firefoxVersion}";
|
||||
|
||||
inherit src;
|
||||
|
||||
buildInputs =
|
||||
[ pkgconfig gtk perl zip libIDL libjpeg zlib cairo bzip2 python
|
||||
dbus dbus_glib pango freetype fontconfig
|
||||
dbus dbus_glib pango freetype fontconfig alsaLib nspr libnotify
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [xulrunner];
|
||||
@ -123,7 +132,7 @@ rec {
|
||||
};
|
||||
|
||||
passthru = {
|
||||
inherit gtk;
|
||||
inherit gtk xulrunner nspr;
|
||||
isFirefox3Like = true;
|
||||
};
|
||||
};
|
@ -1,10 +1,10 @@
|
||||
{stdenv, fetchurl, gtk, gperf, pkgconfig, bzip2} :
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gtkwave-3.2.3";
|
||||
name = "gtkwave-3.3.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/gtkwave/${name}.tar.gz";
|
||||
sha256 = "1ym8fw6cv76gn80qzh6a5y7gikqgnz65hwy0cp6p6h18i5ghgfs0";
|
||||
sha256 = "0dccyyzk963v5nz6hxfvkcnfwm98m8d8s5x0nw6459r9683pdlri";
|
||||
};
|
||||
|
||||
buildInputs = [ gtk gperf pkgconfig bzip2 ];
|
||||
|
@ -8,5 +8,16 @@ stdenv.mkDerivation {
|
||||
sha256 = "0pjir8cwn0087mxszzbsi1gyfc6373vif96cw4q3m1x6p49kd1bq";
|
||||
};
|
||||
|
||||
patches = [ ./getcwd-chroot.patch ];
|
||||
|
||||
preConfigure =
|
||||
# Apply the Debian patches.
|
||||
'' for p in "debian/patches/"*
|
||||
do
|
||||
echo "applying \`$p'..."
|
||||
patch --verbose -p1 < "$p"
|
||||
done
|
||||
'';
|
||||
|
||||
buildInputs = [ nano ];
|
||||
}
|
||||
|
302
pkgs/applications/version-management/cvs/getcwd-chroot.patch
Normal file
302
pkgs/applications/version-management/cvs/getcwd-chroot.patch
Normal file
@ -0,0 +1,302 @@
|
||||
Fix Gnulib's getcwd in chroots.
|
||||
From Debian bug #456164, http://bugs.debian.org/456164 .
|
||||
|
||||
--- cvs-1.12.13.orig/debian/patches/20_readdir_errno
|
||||
+++ cvs-1.12.13/debian/patches/20_readdir_errno
|
||||
@@ -0,0 +1,121 @@
|
||||
+# From Gnulib:
|
||||
+# http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=0b78641d85af3b72e3b9d94cb7b94e45f3c08ee5
|
||||
+# We don't need this directly, but it's required so that 21_getcwd_chroot
|
||||
+# applies cleanly.
|
||||
+#
|
||||
+# 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
|
||||
+#
|
||||
+# * getcwd.c (__getcwd): Don't assume that system calls after readdir
|
||||
+# leave errno alone. Problem reported by Dmitry V. Levin.
|
||||
+
|
||||
+--- cvs-1.12.13-old/lib/getcwd.c
|
||||
++++ cvs-1.12.13/lib/getcwd.c
|
||||
+@@ -201,6 +201,8 @@ __getcwd (char *buf, size_t size)
|
||||
+ ino_t dotino;
|
||||
+ bool mount_point;
|
||||
+ int parent_status;
|
||||
++ size_t dirroom;
|
||||
++ size_t namlen;
|
||||
+
|
||||
+ /* Look at the parent directory. */
|
||||
+ #ifdef AT_FDCWD
|
||||
+@@ -241,11 +243,20 @@ __getcwd (char *buf, size_t size)
|
||||
+ goto lose;
|
||||
+ dotlist[dotlen++] = '/';
|
||||
+ #endif
|
||||
+- /* Clear errno to distinguish EOF from error if readdir returns
|
||||
+- NULL. */
|
||||
+- __set_errno (0);
|
||||
+- while ((d = __readdir (dirstream)) != NULL)
|
||||
++ for (;;)
|
||||
+ {
|
||||
++ /* Clear errno to distinguish EOF from error if readdir returns
|
||||
++ NULL. */
|
||||
++ __set_errno (0);
|
||||
++ d = __readdir (dirstream);
|
||||
++ if (d == NULL)
|
||||
++ {
|
||||
++ if (errno == 0)
|
||||
++ /* EOF on dirstream, which means that the current directory
|
||||
++ has been removed. */
|
||||
++ __set_errno (ENOENT);
|
||||
++ goto lose;
|
||||
++ }
|
||||
+ if (d->d_name[0] == '.' &&
|
||||
+ (d->d_name[1] == '\0' ||
|
||||
+ (d->d_name[1] == '.' && d->d_name[2] == '\0')))
|
||||
+@@ -303,48 +314,38 @@ __getcwd (char *buf, size_t size)
|
||||
+ break;
|
||||
+ }
|
||||
+ }
|
||||
+- if (d == NULL)
|
||||
+- {
|
||||
+- if (errno == 0)
|
||||
+- /* EOF on dirstream, which means that the current directory
|
||||
+- has been removed. */
|
||||
+- __set_errno (ENOENT);
|
||||
+- goto lose;
|
||||
+- }
|
||||
+- else
|
||||
+- {
|
||||
+- size_t dirroom = dirp - dir;
|
||||
+- size_t namlen = _D_EXACT_NAMLEN (d);
|
||||
+
|
||||
+- if (dirroom <= namlen)
|
||||
++ dirroom = dirp - dir;
|
||||
++ namlen = _D_EXACT_NAMLEN (d);
|
||||
++
|
||||
++ if (dirroom <= namlen)
|
||||
++ {
|
||||
++ if (size != 0)
|
||||
+ {
|
||||
+- if (size != 0)
|
||||
+- {
|
||||
+- __set_errno (ERANGE);
|
||||
+- goto lose;
|
||||
+- }
|
||||
+- else
|
||||
+- {
|
||||
+- char *tmp;
|
||||
+- size_t oldsize = allocated;
|
||||
++ __set_errno (ERANGE);
|
||||
++ goto lose;
|
||||
++ }
|
||||
++ else
|
||||
++ {
|
||||
++ char *tmp;
|
||||
++ size_t oldsize = allocated;
|
||||
+
|
||||
+- allocated += MAX (allocated, namlen);
|
||||
+- if (allocated < oldsize
|
||||
+- || ! (tmp = realloc (dir, allocated)))
|
||||
+- goto memory_exhausted;
|
||||
++ allocated += MAX (allocated, namlen);
|
||||
++ if (allocated < oldsize
|
||||
++ || ! (tmp = realloc (dir, allocated)))
|
||||
++ goto memory_exhausted;
|
||||
+
|
||||
+- /* Move current contents up to the end of the buffer.
|
||||
+- This is guaranteed to be non-overlapping. */
|
||||
+- dirp = memcpy (tmp + allocated - (oldsize - dirroom),
|
||||
+- tmp + dirroom,
|
||||
+- oldsize - dirroom);
|
||||
+- dir = tmp;
|
||||
+- }
|
||||
++ /* Move current contents up to the end of the buffer.
|
||||
++ This is guaranteed to be non-overlapping. */
|
||||
++ dirp = memcpy (tmp + allocated - (oldsize - dirroom),
|
||||
++ tmp + dirroom,
|
||||
++ oldsize - dirroom);
|
||||
++ dir = tmp;
|
||||
+ }
|
||||
+- dirp -= namlen;
|
||||
+- memcpy (dirp, d->d_name, namlen);
|
||||
+- *--dirp = '/';
|
||||
+ }
|
||||
++ dirp -= namlen;
|
||||
++ memcpy (dirp, d->d_name, namlen);
|
||||
++ *--dirp = '/';
|
||||
+
|
||||
+ thisdev = dotdev;
|
||||
+ thisino = dotino;
|
||||
--- cvs-1.12.13.orig/debian/patches/21_getcwd_chroot
|
||||
+++ cvs-1.12.13/debian/patches/21_getcwd_chroot
|
||||
@@ -0,0 +1,172 @@
|
||||
+# From Gnulib:
|
||||
+# http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=79c0a43808d9ca85acd04600149fc1a9b75bd1b9
|
||||
+#
|
||||
+# 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
|
||||
+#
|
||||
+# Merge from coreutils.
|
||||
+#
|
||||
+# 2006-03-19 Jim Meyering <jim@meyering.net>
|
||||
+#
|
||||
+# Work even in a chroot where d_ino values for entries in "/"
|
||||
+# don't match the stat.st_ino values for the same names.
|
||||
+# * getcwd.c (__getcwd): When no d_ino value matches the target inode
|
||||
+# number, iterate through all entries again, using lstat instead.
|
||||
+# Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
|
||||
+# Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
|
||||
+#
|
||||
+# * getcwd.c (__getcwd): Clarify a comment.
|
||||
+# Use memcpy in place of a call to strcpy.
|
||||
+
|
||||
+--- cvs-1.12.13-old/lib/getcwd.c
|
||||
++++ cvs-1.12.13/lib/getcwd.c
|
||||
+@@ -211,6 +211,7 @@ __getcwd (char *buf, size_t size)
|
||||
+ int parent_status;
|
||||
+ size_t dirroom;
|
||||
+ size_t namlen;
|
||||
++ bool use_d_ino = true;
|
||||
+
|
||||
+ /* Look at the parent directory. */
|
||||
+ #ifdef AT_FDCWD
|
||||
+@@ -257,11 +258,26 @@ __getcwd (char *buf, size_t size)
|
||||
+ NULL. */
|
||||
+ __set_errno (0);
|
||||
+ d = __readdir (dirstream);
|
||||
++
|
||||
++ /* When we've iterated through all directory entries without finding
|
||||
++ one with a matching d_ino, rewind the stream and consider each
|
||||
++ name again, but this time, using lstat. This is necessary in a
|
||||
++ chroot on at least one system (glibc-2.3.6 + linux 2.6.12), where
|
||||
++ .., ../.., ../../.., etc. all had the same device number, yet the
|
||||
++ d_ino values for entries in / did not match those obtained
|
||||
++ via lstat. */
|
||||
++ if (d == NULL && errno == 0 && use_d_ino)
|
||||
++ {
|
||||
++ use_d_ino = false;
|
||||
++ rewinddir (dirstream);
|
||||
++ d = __readdir (dirstream);
|
||||
++ }
|
||||
++
|
||||
+ if (d == NULL)
|
||||
+ {
|
||||
+ if (errno == 0)
|
||||
+- /* EOF on dirstream, which means that the current directory
|
||||
+- has been removed. */
|
||||
++ /* EOF on dirstream, which can mean e.g., that the current
|
||||
++ directory has been removed. */
|
||||
+ __set_errno (ENOENT);
|
||||
+ goto lose;
|
||||
+ }
|
||||
+@@ -269,58 +285,65 @@ __getcwd (char *buf, size_t size)
|
||||
+ (d->d_name[1] == '\0' ||
|
||||
+ (d->d_name[1] == '.' && d->d_name[2] == '\0')))
|
||||
+ continue;
|
||||
+- if (MATCHING_INO (d, thisino) || mount_point)
|
||||
++
|
||||
++ if (use_d_ino)
|
||||
+ {
|
||||
+- int entry_status;
|
||||
++ bool match = (MATCHING_INO (d, thisino) || mount_point);
|
||||
++ if (! match)
|
||||
++ continue;
|
||||
++ }
|
||||
++
|
||||
++ {
|
||||
++ int entry_status;
|
||||
+ #ifdef AT_FDCWD
|
||||
+- entry_status = fstatat (fd, d->d_name, &st, AT_SYMLINK_NOFOLLOW);
|
||||
++ entry_status = fstatat (fd, d->d_name, &st, AT_SYMLINK_NOFOLLOW);
|
||||
+ #else
|
||||
+- /* Compute size needed for this file name, or for the file
|
||||
+- name ".." in the same directory, whichever is larger.
|
||||
+- Room for ".." might be needed the next time through
|
||||
+- the outer loop. */
|
||||
+- size_t name_alloc = _D_ALLOC_NAMLEN (d);
|
||||
+- size_t filesize = dotlen + MAX (sizeof "..", name_alloc);
|
||||
+-
|
||||
+- if (filesize < dotlen)
|
||||
+- goto memory_exhausted;
|
||||
+-
|
||||
+- if (dotsize < filesize)
|
||||
+- {
|
||||
+- /* My, what a deep directory tree you have, Grandma. */
|
||||
+- size_t newsize = MAX (filesize, dotsize * 2);
|
||||
+- size_t i;
|
||||
+- if (newsize < dotsize)
|
||||
+- goto memory_exhausted;
|
||||
+- if (dotlist != dots)
|
||||
+- free (dotlist);
|
||||
+- dotlist = malloc (newsize);
|
||||
+- if (dotlist == NULL)
|
||||
+- goto lose;
|
||||
+- dotsize = newsize;
|
||||
+-
|
||||
+- i = 0;
|
||||
+- do
|
||||
+- {
|
||||
+- dotlist[i++] = '.';
|
||||
+- dotlist[i++] = '.';
|
||||
+- dotlist[i++] = '/';
|
||||
+- }
|
||||
+- while (i < dotlen);
|
||||
+- }
|
||||
+-
|
||||
+- strcpy (dotlist + dotlen, d->d_name);
|
||||
+- entry_status = __lstat (dotlist, &st);
|
||||
++ /* Compute size needed for this file name, or for the file
|
||||
++ name ".." in the same directory, whichever is larger.
|
||||
++ Room for ".." might be needed the next time through
|
||||
++ the outer loop. */
|
||||
++ size_t name_alloc = _D_ALLOC_NAMLEN (d);
|
||||
++ size_t filesize = dotlen + MAX (sizeof "..", name_alloc);
|
||||
++
|
||||
++ if (filesize < dotlen)
|
||||
++ goto memory_exhausted;
|
||||
++
|
||||
++ if (dotsize < filesize)
|
||||
++ {
|
||||
++ /* My, what a deep directory tree you have, Grandma. */
|
||||
++ size_t newsize = MAX (filesize, dotsize * 2);
|
||||
++ size_t i;
|
||||
++ if (newsize < dotsize)
|
||||
++ goto memory_exhausted;
|
||||
++ if (dotlist != dots)
|
||||
++ free (dotlist);
|
||||
++ dotlist = malloc (newsize);
|
||||
++ if (dotlist == NULL)
|
||||
++ goto lose;
|
||||
++ dotsize = newsize;
|
||||
++
|
||||
++ i = 0;
|
||||
++ do
|
||||
++ {
|
||||
++ dotlist[i++] = '.';
|
||||
++ dotlist[i++] = '.';
|
||||
++ dotlist[i++] = '/';
|
||||
++ }
|
||||
++ while (i < dotlen);
|
||||
++ }
|
||||
++
|
||||
++ memcpy (dotlist + dotlen, d->d_name, _D_ALLOC_NAMLEN (d));
|
||||
++ entry_status = __lstat (dotlist, &st);
|
||||
+ #endif
|
||||
+- /* We don't fail here if we cannot stat() a directory entry.
|
||||
+- This can happen when (network) file systems fail. If this
|
||||
+- entry is in fact the one we are looking for we will find
|
||||
+- out soon as we reach the end of the directory without
|
||||
+- having found anything. */
|
||||
+- if (entry_status == 0 && S_ISDIR (st.st_mode)
|
||||
+- && st.st_dev == thisdev && st.st_ino == thisino)
|
||||
+- break;
|
||||
+- }
|
||||
++ /* We don't fail here if we cannot stat() a directory entry.
|
||||
++ This can happen when (network) file systems fail. If this
|
||||
++ entry is in fact the one we are looking for we will find
|
||||
++ out soon as we reach the end of the directory without
|
||||
++ having found anything. */
|
||||
++ if (entry_status == 0 && S_ISDIR (st.st_mode)
|
||||
++ && st.st_dev == thisdev && st.st_ino == thisino)
|
||||
++ break;
|
||||
++ }
|
||||
+ }
|
||||
+
|
||||
+ dirroom = dirp - dir;
|
@ -17,6 +17,17 @@ rec {
|
||||
perlLibs = [perlPackages.LWP perlPackages.URI perlPackages.TermReadKey subversion];
|
||||
};
|
||||
|
||||
# The full-featured Git.
|
||||
gitFull = import ./git {
|
||||
inherit fetchurl stdenv curl openssl zlib expat perl gettext
|
||||
asciidoc texinfo xmlto docbook2x
|
||||
docbook_xsl docbook_xml_dtd_45 libxslt
|
||||
cpio tcl tk makeWrapper subversion;
|
||||
svnSupport = true;
|
||||
guiSupport = true;
|
||||
perlLibs = [perlPackages.LWP perlPackages.URI perlPackages.TermReadKey subversion];
|
||||
};
|
||||
|
||||
gitGit = import ./git/git-git.nix {
|
||||
inherit fetchurl sourceFromHead stdenv curl openssl zlib expat perl gettext
|
||||
asciidoc texinfo xmlto docbook2x
|
||||
|
@ -102,7 +102,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = {
|
||||
license = "GPLv2";
|
||||
homepage = http://git.or.cz;
|
||||
homepage = http://git-scm.com/;
|
||||
description = "Git, a popular distributed version control system";
|
||||
|
||||
longDescription = ''
|
||||
@ -110,5 +110,11 @@ stdenv.mkDerivation rec {
|
||||
handle very large projects with speed and efficiency.
|
||||
'';
|
||||
|
||||
maintainers =
|
||||
[ # Add your name here!
|
||||
stdenv.lib.maintainers.ludo
|
||||
];
|
||||
|
||||
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
||||
};
|
||||
}
|
||||
|
@ -2,13 +2,13 @@
|
||||
lua, pcre, sqlite, perl, lib}:
|
||||
|
||||
let
|
||||
version = "0.45";
|
||||
version = "0.46";
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "monotone-${version}";
|
||||
inherit perl;
|
||||
src = fetchurl {
|
||||
url = "http://monotone.ca/downloads/${version}/monotone-${version}.tar.gz";
|
||||
sha256 = "64c734274715f392eb4a879172a11c0606d37c02b4a6f23045772af5f8e2a9ec";
|
||||
sha256 = "1pla2fvkmfbrzfbdqd2jjghldpxl9iq81pwwkwaxa7n57snbvq61";
|
||||
};
|
||||
buildInputs = [boost zlib botan libidn lua pcre sqlite];
|
||||
preConfigure = ''
|
||||
|
@ -24,6 +24,104 @@ if test -n "$expHash"; then
|
||||
hash=$expHash
|
||||
fi
|
||||
|
||||
init_remote(){
|
||||
local url=$1;
|
||||
git init;
|
||||
git remote add origin $url;
|
||||
}
|
||||
|
||||
# Return the reference of an hash if it exists on the remote repository.
|
||||
ref_from_hash(){
|
||||
local hash=$1;
|
||||
git ls-remote origin | sed -n "\,$hash\t, { s,\(.*\)\t\(.*\),\2,; p; q}"
|
||||
}
|
||||
|
||||
# Return the hash of a reference if it exists on the remote repository.
|
||||
hash_from_ref(){
|
||||
local ref=$1
|
||||
git ls-remote origin | sed -n "\,\t$ref, { s,\(.*\)\t\(.*\),\1,; p; q}"
|
||||
}
|
||||
|
||||
# Fetch everything and checkout the right sha1
|
||||
checkout_hash(){
|
||||
local hash="$1";
|
||||
local ref="$2";
|
||||
|
||||
if test -z "$hash"; then
|
||||
hash=$(hash_from_ref $ref);
|
||||
fi;
|
||||
|
||||
git fetch origin || return 1
|
||||
git checkout $hash || return 1
|
||||
}
|
||||
|
||||
# Fetch only a branch/tag and checkout it.
|
||||
checkout_ref(){
|
||||
local hash="$1";
|
||||
local ref="$2";
|
||||
|
||||
if test -n "$NIX_PREFETCH_GIT_DEEP_CLONE"; then
|
||||
# The caller explicitly asked for a deep clone. Deep clones
|
||||
# allow "git describe" and similar tools to work. See
|
||||
# http://thread.gmane.org/gmane.linux.distributions.nixos/3569
|
||||
# for a discussion.
|
||||
return 1
|
||||
fi
|
||||
|
||||
if test -z "$ref"; then
|
||||
ref=$(ref_from_hash $hash);
|
||||
fi;
|
||||
|
||||
if test -n "$ref"; then
|
||||
# --depth option is ignored on http repository.
|
||||
git fetch --depth 1 origin +"$ref" || return 1
|
||||
git checkout FETCH_HEAD || return 1
|
||||
else
|
||||
return 1;
|
||||
fi;
|
||||
}
|
||||
|
||||
# Update submodules
|
||||
init_submodules(){
|
||||
# Add urls into .git/config file
|
||||
git submodule init
|
||||
|
||||
# list submodule directories and their hashes
|
||||
git submodule status |
|
||||
while read l; do
|
||||
# checkout each submodule
|
||||
local hash=$(echo $l | sed 's,^-\([0-9a-f]*\) \(.*\)$,\1,');
|
||||
local dir=$(echo $l | sed 's,^-\([0-9a-f]*\) \(.*\)$,\2,');
|
||||
local url=$(sed -n "\,$dir, { :loop; n; s,^.*url = ,,; T loop; p; q }" .git/config);
|
||||
|
||||
clone "$dir" "$url" "$hash" "";
|
||||
done;
|
||||
}
|
||||
|
||||
clone(){
|
||||
local top=$(pwd)
|
||||
local dir="$1"
|
||||
local url="$2"
|
||||
local hash="$3"
|
||||
local ref="$4"
|
||||
|
||||
cd $dir;
|
||||
|
||||
# Initialize the repository.
|
||||
init_remote "$url";
|
||||
|
||||
# Download data from the repository.
|
||||
checkout_ref "$hash" "$ref" ||
|
||||
checkout_hash "$hash" "$ref" || (
|
||||
echo 1>&2 "Unable to checkout $hash$ref from $url.";
|
||||
exit 1;
|
||||
)
|
||||
|
||||
# Checkout linked sources.
|
||||
init_submodules;
|
||||
|
||||
cd $top;
|
||||
}
|
||||
|
||||
# If we don't know the hash or a path with that hash doesn't exist,
|
||||
# download the file and add it to the store.
|
||||
@ -31,23 +129,31 @@ if test -z "$finalPath"; then
|
||||
|
||||
tmpPath=/tmp/git-checkout-tmp-$$
|
||||
tmpFile=$tmpPath/git-export
|
||||
mkdir $tmpPath
|
||||
mkdir $tmpPath $tmpFile
|
||||
|
||||
trap "rm -rf $tmpPath" EXIT
|
||||
|
||||
# Perform the checkout.
|
||||
git clone "$url" $tmpFile 1>&2
|
||||
if test -n "$rev"; then
|
||||
cd $tmpFile
|
||||
echo $tmpFile >&2
|
||||
git checkout $rev 1>&2
|
||||
fi
|
||||
case "$rev" in
|
||||
HEAD|refs/*)
|
||||
clone "$tmpFile" "$url" "" "$rev" 1>&2;;
|
||||
[0-9a-f]*)
|
||||
if test -z "$(echo $rev | tr -d 0123456789abcdef)"; then
|
||||
clone "$tmpFile" "$url" "$rev" "" 1>&2;
|
||||
else
|
||||
echo 1>&2 "Bad commit hash or bad reference.";
|
||||
exit 1;
|
||||
fi;;
|
||||
"")
|
||||
clone "$tmpFile" "$url" "" "HEAD" 1>&2;;
|
||||
esac
|
||||
|
||||
# Allow doing additional processing before .git removal
|
||||
eval "$NIX_PREFETCH_GIT_CHECKOUT_HOOK"
|
||||
if test "$NIX_PREFETCH_GIT_LEAVE_DOT_GIT" != 1
|
||||
then
|
||||
echo "removing \`.git'..." >&2
|
||||
rm -rf .git
|
||||
rm -rf $tmpFile/.git
|
||||
fi
|
||||
|
||||
# Compute the hash.
|
||||
|
@ -14,7 +14,7 @@ rec {
|
||||
|
||||
modulesClosure = makeModulesClosure {
|
||||
inherit kernel;
|
||||
rootModules = ["cifs" "virtio_net" "virtio_pci" "virtio_blk" "virtio_balloon" "nls_utf8" "ext2" "unix"];
|
||||
rootModules = ["cifs" "virtio_net" "virtio_pci" "virtio_blk" "virtio_balloon" "nls_utf8" "ext2" "ext3" "unix"];
|
||||
};
|
||||
|
||||
|
||||
|
23
pkgs/data/misc/cacert/default.nix
Normal file
23
pkgs/data/misc/cacert/default.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "cacert-20090922";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://nixos.org/tarballs/cacert-20090922.pem.bz2;
|
||||
sha256 = "1fakipxy5y62vslw6czj24pksh16b042py9v0199mxhzg5nmbmy7";
|
||||
};
|
||||
|
||||
unpackPhase = "true";
|
||||
|
||||
installPhase =
|
||||
''
|
||||
ensureDir $out/etc
|
||||
bunzip2 < $src > $out/etc/ca-bundle.crt
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://curl.haxx.se/docs/caextract.html;
|
||||
description = "A bundle of X.509 certificates of public Certificate Authorities (CA)";
|
||||
};
|
||||
}
|
@ -11,8 +11,6 @@ rec {
|
||||
gnomeicontheme = gnome_icon_theme;
|
||||
|
||||
# !!! Missing! Need to add these.
|
||||
libgnomeprint = throw "libgnomeprint not implemented";
|
||||
libgtkhtml = throw "libgtkhtml not implemented";
|
||||
vte = throw "vte not implemented";
|
||||
gtksourceview_24 = gtksourceview;
|
||||
|
||||
@ -47,6 +45,23 @@ rec {
|
||||
inherit (pkgs) stdenv fetchurl pkgconfig libxml2 python gettext;
|
||||
inherit (pkgs.gtkLibs) gtk;
|
||||
};
|
||||
|
||||
libgnomeprint = import ./platform/libgnomeprint {
|
||||
inherit intltool libart_lgpl libgnomecups;
|
||||
inherit (pkgs) stdenv fetchurl pkgconfig gettext libxml2 bison flex;
|
||||
inherit (pkgs.gtkLibs) gtk;
|
||||
};
|
||||
|
||||
libgnomecups = import ./platform/libgnomecups {
|
||||
inherit intltool libart_lgpl;
|
||||
inherit (pkgs) stdenv fetchurl pkgconfig gettext libxml2;
|
||||
inherit (pkgs.gtkLibs) gtk;
|
||||
};
|
||||
|
||||
libgtkhtml = import ./platform/libgtkhtml {
|
||||
inherit (pkgs) stdenv fetchurl pkgconfig gettext libxml2;
|
||||
inherit (pkgs.gtkLibs) gtk;
|
||||
};
|
||||
|
||||
intltool = import ./platform/intltool {
|
||||
inherit (pkgs) stdenv fetchurl pkgconfig perl perlXMLParser gettext;
|
||||
@ -126,6 +141,13 @@ rec {
|
||||
|
||||
# What name should we use??
|
||||
gtkdoc = gtk_doc;
|
||||
|
||||
gtkhtml = import ./platform/gtkhtml {
|
||||
inherit (pkgs.gtkLibs) gtk;
|
||||
inherit (pkgs) fetchurl stdenv pkgconfig intltool enchant isocodes;
|
||||
inherit GConf gnome_icon_theme;
|
||||
};
|
||||
|
||||
|
||||
# Freedesktop library
|
||||
startup_notification = import ./platform/startup-notification {
|
||||
|
13
pkgs/desktops/gnome-2.28/platform/gtkhtml/default.nix
Normal file
13
pkgs/desktops/gnome-2.28/platform/gtkhtml/default.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ stdenv, fetchurl, pkgconfig, gtk, intltool,
|
||||
GConf, enchant, isocodes, gnome_icon_theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gtkhtml-3.29.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/gtkhtml/3.29/${name}.tar.bz2";
|
||||
sha256 = "0abd91isqbriq9nclq14275v2xd0r9vrr3sxhxwxxp02m8gskwvd";
|
||||
};
|
||||
|
||||
buildInputs = [pkgconfig gtk intltool GConf enchant isocodes gnome_icon_theme ];
|
||||
}
|
13
pkgs/desktops/gnome-2.28/platform/libgnomecups/default.nix
Normal file
13
pkgs/desktops/gnome-2.28/platform/libgnomecups/default.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{stdenv, fetchurl, pkgconfig, gtk, gettext, libxml2, intltool, libart_lgpl }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "libgnomecups-0.2.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://gnome/sources/libgnomecups/0.2/libgnomecups-0.2.3.tar.bz2;
|
||||
sha256 = "0a8xdaxzz2wc0n1fjcav65093gixzyac3948l8cxx1mk884yhc71";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig gtk gettext intltool libart_lgpl ];
|
||||
propagatedBuildInputs = [ libxml2 ];
|
||||
}
|
14
pkgs/desktops/gnome-2.28/platform/libgnomeprint/default.nix
Normal file
14
pkgs/desktops/gnome-2.28/platform/libgnomeprint/default.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{stdenv, fetchurl, pkgconfig, gtk, gettext, libxml2, intltool, libart_lgpl, libgnomecups, bison,
|
||||
flex }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "libgnomeprint-2.11.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://gnome/sources/libgnomeprint/2.18/libgnomeprint-2.18.6.tar.bz2;
|
||||
sha256 = "15c00ya2mx0x4mh8lyy3xg9dd66z5yjnax74bqx99zd90sar10fg";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig gtk gettext intltool libart_lgpl libgnomecups bison flex ];
|
||||
propagatedBuildInputs = [ libxml2 ];
|
||||
}
|
13
pkgs/desktops/gnome-2.28/platform/libgtkhtml/default.nix
Normal file
13
pkgs/desktops/gnome-2.28/platform/libgtkhtml/default.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{stdenv, fetchurl, pkgconfig, gtk, gettext, libxml2 }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "libgtkhtml-2.11.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://gnome/sources/libgtkhtml/2.11/libgtkhtml-2.11.1.tar.bz2;
|
||||
sha256 = "0msajafd42545dxzyr5zqka990cjrxw2yz09ajv4zs8m1w6pm9rw";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig gtk gettext ];
|
||||
propagatedBuildInputs = [ libxml2 ];
|
||||
}
|
@ -56,7 +56,8 @@ pkgs.recurseIntoAttrs (rec {
|
||||
### LIBS
|
||||
kdelibs = import ./libs {
|
||||
inherit (pkgs) stdenv fetchurl lib cmake qt4 perl bzip2 pcre fam libxml2 libxslt;
|
||||
inherit (pkgs) xz flex bison giflib jasper openexr aspell avahi shared_mime_info;
|
||||
inherit (pkgs) xz flex bison giflib jasper openexr aspell avahi shared_mime_info
|
||||
kerberos acl attr;
|
||||
inherit automoc4 phonon strigi soprano;
|
||||
};
|
||||
|
||||
@ -218,6 +219,12 @@ pkgs.recurseIntoAttrs (rec {
|
||||
inherit automoc4 phonon strigi soprano qca2;
|
||||
};
|
||||
|
||||
digikam = import ./extragear/digikam {
|
||||
inherit (pkgs) stdenv fetchurl lib cmake qt4 lcms jasper libgphoto2 gettext;
|
||||
inherit kdelibs kdepimlibs kdegraphics;
|
||||
inherit automoc4 phonon qimageblitz qca2 eigen;
|
||||
};
|
||||
|
||||
filelight = import ./extragear/filelight {
|
||||
inherit (pkgs) stdenv fetchurl lib cmake qt4 perl;
|
||||
inherit kdelibs kdebase_workspace;
|
||||
@ -229,6 +236,12 @@ pkgs.recurseIntoAttrs (rec {
|
||||
inherit kdelibs;
|
||||
inherit automoc4 phonon;
|
||||
};
|
||||
|
||||
kipiplugins = import ./extragear/kipi-plugins {
|
||||
inherit (pkgs) stdenv fetchurl lib cmake qt4 libxml2 libxslt gettext;
|
||||
inherit kdelibs kdepimlibs kdegraphics;
|
||||
inherit automoc4 phonon qimageblitz qca2;
|
||||
};
|
||||
|
||||
kmplayer = import ./extragear/kmplayer {
|
||||
inherit (pkgs) stdenv fetchurl lib cmake qt4 perl gettext dbus_glib;
|
||||
|
24
pkgs/desktops/kde-4.3/extragear/digikam/default.nix
Normal file
24
pkgs/desktops/kde-4.3/extragear/digikam/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ stdenv, fetchurl, lib, cmake, qt4, kdelibs, automoc4, phonon, qimageblitz, qca2, eigen,
|
||||
kdegraphics, lcms, jasper, libgphoto2, kdepimlibs, gettext}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "digikam-1.0.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/digikam/digikam-1.0.0.tar.bz2;
|
||||
sha256 = "0qblqyjn0vas8hyqn5s9rr401d93cagk53y3j8kch0mr0bk706bk";
|
||||
};
|
||||
|
||||
includeAllQtDirs=true;
|
||||
buildInputs = [ cmake qt4 kdelibs kdegraphics automoc4 phonon qimageblitz qca2 eigen
|
||||
lcms jasper libgphoto2 kdepimlibs gettext ];
|
||||
CMAKE_PREFIX_PATH = kdepimlibs;
|
||||
cmakeFlags = [ "-DGETTEXT_INCLUDE_DIR=${gettext}/include" ];
|
||||
meta = {
|
||||
description = "Photo Management Program";
|
||||
license = "GPL";
|
||||
homepage = http://www.koffice.org;
|
||||
maintainers = [ lib.maintainers.viric ];
|
||||
platforms = with lib.platforms; linux;
|
||||
};
|
||||
}
|
24
pkgs/desktops/kde-4.3/extragear/kipi-plugins/default.nix
Normal file
24
pkgs/desktops/kde-4.3/extragear/kipi-plugins/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ stdenv, fetchurl, lib, cmake, qt4, kdelibs, automoc4, phonon, qimageblitz, qca2,
|
||||
kdegraphics, kdepimlibs, libxml2, libxslt, gettext}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "kipi-plugins-0.9.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/kipi/kipi-plugins-0.9.0.tar.bz2;
|
||||
sha256 = "0wx1r607q8i4v55k8qjzz7wn8rfd86nniq3h3s7dgnddq7x17fqn";
|
||||
};
|
||||
|
||||
includeAllQtDirs=true;
|
||||
buildInputs = [ cmake qt4 kdelibs kdegraphics automoc4 phonon qimageblitz qca2 kdepimlibs
|
||||
libxml2 libxslt gettext ];
|
||||
CMAKE_PREFIX_PATH = kdepimlibs;
|
||||
cmakeFlags = [ "-DGETTEXT_INCLUDE_DIR=${gettext}/include" ];
|
||||
meta = {
|
||||
description = "Photo Management Program";
|
||||
license = "GPL";
|
||||
homepage = http://www.koffice.org;
|
||||
maintainers = [ lib.maintainers.viric ];
|
||||
platforms = with lib.platforms; linux;
|
||||
};
|
||||
}
|
@ -8,6 +8,7 @@ stdenv.mkDerivation {
|
||||
};
|
||||
includeAllQtDirs=true;
|
||||
buildInputs = [ cmake qt4 perl gettext kdelibs automoc4 phonon ];
|
||||
patches = [./krusader-gcc44.patch];
|
||||
meta = {
|
||||
description = "Norton/Total Commander clone for KDE";
|
||||
license = "GPL";
|
||||
|
@ -0,0 +1,10 @@
|
||||
--- krusader-2.0.0/krusader/VFS/kiojobwrapper.cpp~ 2009-04-29 17:13:43.000000000 +0000
|
||||
+++ krusader-2.0.0/krusader/VFS/kiojobwrapper.cpp 2009-04-29 17:14:01.000000000 +0000
|
||||
@@ -37,6 +37,7 @@
|
||||
#include <kio/jobuidelegate.h>
|
||||
#include <kio/job.h>
|
||||
#include <qapplication.h>
|
||||
+#include <cstdio>
|
||||
#include <iostream>
|
||||
#include <klocale.h>
|
||||
#include "virtualcopyjob.h"
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, cmake, lib, perl
|
||||
, qt4, bzip2, pcre, fam, libxml2, libxslt, shared_mime_info, giflib, jasper
|
||||
, xz, flex, bison, openexr, aspell, avahi
|
||||
, xz, flex, bison, openexr, aspell, avahi, kerberos, acl, attr
|
||||
, automoc4, phonon, strigi, soprano
|
||||
}:
|
||||
|
||||
@ -16,9 +16,12 @@ stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [
|
||||
cmake perl qt4 stdenv.gcc.libc xz flex bison bzip2 pcre fam libxml2 libxslt
|
||||
shared_mime_info giflib jasper /* openexr */ aspell avahi
|
||||
shared_mime_info giflib jasper /* openexr */ aspell avahi kerberos acl attr
|
||||
automoc4 phonon strigi soprano
|
||||
];
|
||||
|
||||
# I don't know why cmake does not find the acl files (but finds attr files)
|
||||
cmakeFlags = [ "-DHAVE_ACL_LIBACL_H=ON" "-DHAVE_SYS_ACL_H=ON" ];
|
||||
|
||||
meta = {
|
||||
description = "KDE libraries";
|
||||
|
26
pkgs/development/compilers/ecl/default.nix
Normal file
26
pkgs/development/compilers/ecl/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
a :
|
||||
let
|
||||
s = import ./src-for-default.nix;
|
||||
buildInputs = with a; [
|
||||
gmp mpfr
|
||||
];
|
||||
in
|
||||
rec {
|
||||
src = a.fetchUrlFromSrcInfo s;
|
||||
|
||||
inherit (s) name;
|
||||
inherit buildInputs;
|
||||
configureFlags = [];
|
||||
|
||||
/* doConfigure should be removed if not needed */
|
||||
phaseNames = ["doConfigure" "doMakeInstall"];
|
||||
|
||||
meta = {
|
||||
description = "A Lisp implementation aiming to be small and fast";
|
||||
maintainers = [
|
||||
a.lib.maintainers.raskin
|
||||
];
|
||||
platforms = with a.lib.platforms;
|
||||
linux;
|
||||
};
|
||||
}
|
9
pkgs/development/compilers/ecl/src-for-default.nix
Normal file
9
pkgs/development/compilers/ecl/src-for-default.nix
Normal file
@ -0,0 +1,9 @@
|
||||
rec {
|
||||
version="9.6.2";
|
||||
name="ecl-9.6.2";
|
||||
hash="1847ppfrgfpjwc9qlfcvvsfhkarjz339qzh9mb0fwnqfihrbqpfy";
|
||||
url="http://downloads.sourceforge.net/ecls/files/ecls/9.6.0/ecl-${version}.tar.gz";
|
||||
advertisedUrl="http://downloads.sourceforge.net/ecls/files/ecls/9.6.0/ecl-9.6.2.tar.gz";
|
||||
|
||||
|
||||
}
|
5
pkgs/development/compilers/ecl/src-info-for-default.nix
Normal file
5
pkgs/development/compilers/ecl/src-info-for-default.nix
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
downloadPage = "http://sourceforge.net/projects/ecls/files/";
|
||||
baseName = "ecl";
|
||||
choiceCommand = "head -1 | sed -e 's@/download@@;'\"$skipRedirectSF\"";
|
||||
}
|
@ -35,7 +35,11 @@ rec {
|
||||
name = "acl2-" + version;
|
||||
meta = {
|
||||
description = "An interpreter and a prover for a Lisp dialect";
|
||||
maintainers = [
|
||||
maintainers = with a.lib.maintainers;
|
||||
[
|
||||
raskin
|
||||
];
|
||||
platforms = with a.lib.platforms;
|
||||
linux;
|
||||
};
|
||||
}
|
||||
|
@ -7,10 +7,11 @@
|
||||
else stdenv.mkDerivation)
|
||||
|
||||
rec {
|
||||
name = "guile-1.9.6"; # This is an alpha release!
|
||||
name = "guile-1.9.7"; # This is a beta release!
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://alpha.gnu.org/gnu/guile/${name}.tar.gz";
|
||||
sha256 = "1cfhzm9az1wbq0741v98af09v7f3094ym727qjfgj8n9jyxvpxnw";
|
||||
sha256 = "1jyvckid3wjx82717fy1018qpdnglawv29r4wbv239cva8gv5nbr";
|
||||
};
|
||||
|
||||
buildInputs = [ makeWrapper gawk readline libtool libunistring pkgconfig ];
|
||||
|
@ -1,11 +1,11 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "chmlib-0.39";
|
||||
name = "chmlib-0.40";
|
||||
|
||||
src = fetchurl {
|
||||
url = "${meta.homepage}/${name}.tar.bz2";
|
||||
sha256 = "0hgzw121ffmk79wbpkd0394y5ah99c3i85z6scp958mmkr25sc6j";
|
||||
sha256 = "18zzb4x3z0d7fjh1x5439bs62dmgsi4c1pg3qyr7h5gp1i5xcj9l";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
@ -1,10 +1,10 @@
|
||||
args: with args;
|
||||
stdenv.mkDerivation {
|
||||
name = "glew-1.5.0";
|
||||
name = "glew-1.5.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://dfn.dl.sourceforge.net/sourceforge/glew/glew-1.5.0-src.tgz;
|
||||
sha256 = "1kjr1fchnl785wsg11vzc03q3pm12lh20n1i593zr1xqfjgx2b4h";
|
||||
url = http://dfn.dl.sourceforge.net/sourceforge/glew/glew-1.5.2.tgz;
|
||||
sha256 = "0dh5wpfq7aaldkiwcqmm9w59c2qcglkjv8zazmnm8n5771n3caj8";
|
||||
};
|
||||
|
||||
buildInputs = [mesa x11 libXmu libXi];
|
||||
|
@ -67,7 +67,7 @@ attrs :
|
||||
./Setup build
|
||||
|
||||
export GHC_PACKAGE_PATH=$(ghc-packages)
|
||||
./Setup haddock
|
||||
[ -n "$noHadock" ] || ./Setup haddock
|
||||
|
||||
eval "$postBuild"
|
||||
'';
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
cabal.mkDerivation (self : {
|
||||
pname = "uu-parsinglib";
|
||||
version = "2.3.0";
|
||||
sha256 = "0ddf5ff41e59d8a777942f821170f1e6c7373712b029261a7efbc16fa663b671";
|
||||
version = "2.3.1";
|
||||
sha256 = "63ed4257f360a861b13f3e0edad6c17bbad90a0e3e031de49ed4d13a1ace98d2";
|
||||
meta = {
|
||||
description = "New version of the Utrecht University parser combinator library";
|
||||
};
|
||||
|
28
pkgs/development/libraries/levmar/default.nix
Normal file
28
pkgs/development/libraries/levmar/default.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "levmar-2.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.ics.forth.gr/~lourakis/levmar/${name}.tgz";
|
||||
sha256 = "0xcx9fvymr0j5kmfy5cqaa2lxf1c64vv25z2a28w43pkxz1nl3xp";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
sed -i 's/define HAVE_LAPACK/undef HAVE_LAPACK/' levmar.h
|
||||
sed -i 's/LAPACKLIBS=.*/LAPACKLIBS=/' Makefile
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out/include $out/lib
|
||||
cp lm.h $out/include
|
||||
cp liblevmar.a $out/lib
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "ANSI C implementations of Levenberg-Marquardt, usable also from C++";
|
||||
homepage = http://www.ics.forth.gr/~lourakis/levmar/;
|
||||
license = "GPLv2+";
|
||||
};
|
||||
}
|
||||
|
37
pkgs/development/libraries/levmar/use-atlas.patch
Normal file
37
pkgs/development/libraries/levmar/use-atlas.patch
Normal file
@ -0,0 +1,37 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index af70b4c..53c6fab 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -15,11 +15,11 @@ DEMOBJS=lmdemo.o
|
||||
DEMOSRCS=lmdemo.c
|
||||
AR=ar
|
||||
RANLIB=ranlib
|
||||
-LAPACKLIBS=-llapack -lblas -lf2c # comment this line if you are not using LAPACK.
|
||||
+#LAPACKLIBS=-llapack -lblas -lf2c # comment this line if you are not using LAPACK.
|
||||
# On systems with a FORTRAN (not f2c'ed) version of LAPACK, -lf2c is
|
||||
# not necessary; on others, -lf2c is equivalent to -lF77 -lI77
|
||||
|
||||
-#LAPACKLIBS=-L/usr/local/atlas/lib -llapack -lcblas -lf77blas -latlas -lf2c # This works with the ATLAS updated lapack and Linux_P4SSE2
|
||||
+LAPACKLIBS=-llapack -lcblas -lf77blas -latlas -lgfortran # This works with the ATLAS updated lapack and Linux_P4SSE2
|
||||
# from http://www.netlib.org/atlas/archives/linux/
|
||||
|
||||
#LAPACKLIBS=-llapack -lgoto2 -lpthread -lf2c # This works with GotoBLAS
|
||||
diff --git a/misc.h b/misc.h
|
||||
index e32f18d..827507e 100644
|
||||
--- a/misc.h
|
||||
+++ b/misc.h
|
||||
@@ -30,11 +30,11 @@
|
||||
/* f2c'd BLAS */
|
||||
//#define LM_BLAS_PREFIX f2c_
|
||||
/* C BLAS */
|
||||
-//#define LM_BLAS_PREFIX cblas_
|
||||
+#define LM_BLAS_PREFIX cblas_
|
||||
|
||||
/* common suffix for BLAS subroutines */
|
||||
-//#define LM_BLAS_SUFFIX // define empty if a f2c_ or cblas_ prefix was defined for LM_BLAS_PREFIX above
|
||||
-#define LM_BLAS_SUFFIX _ // use this in case of no BLAS prefix
|
||||
+#define LM_BLAS_SUFFIX // define empty if a f2c_ or cblas_ prefix was defined for LM_BLAS_PREFIX above
|
||||
+//#define LM_BLAS_SUFFIX _ // use this in case of no BLAS prefix
|
||||
|
||||
|
||||
#define LCAT_(a, b) #a b
|
@ -4,7 +4,7 @@ stdenv.mkDerivation rec {
|
||||
name = "lib3ds-1.3.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/lib3ds/${name}.zip";
|
||||
url = "http://lib3ds.googlecode.com/files/${name}.zip";
|
||||
sha256 = "1qr9arfdkjf7q11xhvxwzmhxqz3nhcjkyb8zzfjpz9jm54q0rc7m";
|
||||
};
|
||||
|
||||
|
16
pkgs/development/libraries/libiptcdata/default.nix
Normal file
16
pkgs/development/libraries/libiptcdata/default.nix
Normal file
@ -0,0 +1,16 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libiptcdata-1.0.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/libiptcdata/${name}.tar.gz";
|
||||
sha256 = "03pfvkmmx762iydq0q207x2028d275pbdysfsgpmrr0ywy63pxkr";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Library for reading and writing the IPTC metadata in images and other files";
|
||||
homepage = http://libiptcdata.sourceforge.net/;
|
||||
license = "GPLv2+";
|
||||
};
|
||||
}
|
@ -1,17 +1,17 @@
|
||||
args: with args;
|
||||
{ stdenv, fetchurl, pkgconfig, dbus, dbus_glib, gtk, glib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "libnotify-0.4.4";
|
||||
#builder = ./builder.sh;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libnotify-0.4.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.galago-project.org/files/releases/source/libnotify/libnotify-0.4.4.tar.gz;
|
||||
sha256 = "2389a9b8220f776033f728a8d46352cfee5c8705066e34887bfb188f9f0d3856";
|
||||
url = "http://www.galago-project.org/files/releases/source/libnotify/${name}.tar.gz";
|
||||
sha256 = "1ndh7wpm9qh12vm5avjrq2xv1j681j9qq6j2fyj6a2shl67dp687";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig dbus.libs dbus_glib gtk glib
|
||||
];
|
||||
buildInputs = [ pkgconfig dbus.libs dbus_glib gtk glib ];
|
||||
|
||||
configureFlags="";
|
||||
meta = {
|
||||
homepage = http://galago-project.org/;
|
||||
description = "A library that sends desktop notifications to a notification daemon";
|
||||
};
|
||||
}
|
||||
|
@ -1,15 +1,26 @@
|
||||
{stdenv, fetchurl}:
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libtasn1-2.4";
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "libtasn1-1.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://gnu/gnutls/libtasn1-1.5.tar.gz;
|
||||
sha256 = "1p4m9in144ypk6ndqw46sfz0njx6wccp0zlxjvigxry8034zbn6s";
|
||||
url = "mirror://gnu/libtasn1/${name}.tar.gz";
|
||||
sha256 = "03qz9wnx3643wvy10603syx97mi634z6bhdwznzmqcsq6hwg5g69";
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = http://josefsson.org/libtasn1/;
|
||||
description = "An ASN.1 library";
|
||||
homepage = http://www.gnu.org/software/libtasn1/;
|
||||
description = "GNU Libtasn1, an ASN.1 library";
|
||||
|
||||
longDescription =
|
||||
'' Libtasn1 is the ASN.1 library used by GnuTLS, GNU Shishi and some
|
||||
other packages. The goal of this implementation is to be highly
|
||||
portable, and only require an ANSI C89 platform.
|
||||
'';
|
||||
|
||||
license = "LGPLv2+";
|
||||
|
||||
maintainers = [ stdenv.lib.maintainers.ludo ];
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
||||
|
@ -1,10 +1,10 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "qhull-2003.1";
|
||||
name = "qhull-2010.1";
|
||||
src = fetchurl {
|
||||
url = http://www.qhull.org/download/qhull-2003.1-src.tgz;
|
||||
sha256 = "1ah6yhh8qxqmvjcpmijibxcw8gjwvdcrb9g7j2rkawazq95a2j0s";
|
||||
url = http://www.qhull.org/download/qhull-2010.1-src.tgz;
|
||||
sha256 = "1ghnwci1s56yzzwg8gmlzhsd5v3imsqxf24yb0j5m6qv8kxqaw2m";
|
||||
};
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-fno-strict-aliasing " +
|
||||
|
@ -44,6 +44,11 @@ stdenv.mkDerivation {
|
||||
libtiff
|
||||
];
|
||||
|
||||
# libQtNetwork will call libQtCore for it to dlopen openssl.
|
||||
NIX_LDFLAGS = "-rpath ${openssl}/lib";
|
||||
# Don't shrink the rpath, to keep ${openssl} in it.
|
||||
dontPatchELF = 1;
|
||||
|
||||
prefixKey = "-prefix ";
|
||||
|
||||
configureFlags = ''
|
||||
|
@ -5,11 +5,11 @@
|
||||
, buildDemos ? false, buildExamples ? false, keepDocumentation ? false}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "qt-4.6.0";
|
||||
name = "qt-4.6.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.0.tar.gz;
|
||||
sha256 = "12c5s9am0wd7a9fkpgizssv21hq17vra46j4ply3ixi46f0rq9am";
|
||||
url = ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.1.tar.gz;
|
||||
sha256 = "1id05qfxn5rxds3yngn3nbd7dnjmvmhzgjf0x568aii5iadv712c";
|
||||
};
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
@ -0,0 +1,12 @@
|
||||
diff -ubr distcc-3.1-orig/src/io.c distcc-3.1-patched/src/io.c
|
||||
--- distcc-3.1-orig/src/io.c 2008-12-02 22:50:25.000000000 +0100
|
||||
+++ distcc-3.1-patched/src/io.c 2010-01-07 15:07:18.000000000 +0100
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
/** Timeout for all IO other than opening connections. Much longer, because
|
||||
* compiling files can take a long time. **/
|
||||
-const int dcc_io_timeout = 300; /* seconds */
|
||||
+const int dcc_io_timeout = 1200; /* seconds */
|
||||
|
||||
|
||||
/**
|
@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, popt, avahi, pkgconfig, python, gtk}:
|
||||
{stdenv, fetchurl, popt, avahi, pkgconfig, python, gtk, static ? false}:
|
||||
|
||||
let name = "distcc";
|
||||
version = "3.1";
|
||||
@ -15,13 +15,15 @@ stdenv.mkDerivation {
|
||||
''
|
||||
configureFlagsArray=( CFLAGS="-O2 -fno-strict-aliasing"
|
||||
CXXFLAGS="-O2 -fno-strict-aliasing"
|
||||
--with${if popt == null then "" else "out"}-included-popt
|
||||
${if static then "LDFLAGS=-static" else ""}
|
||||
--with${if static == true || popt == null then "" else "out"}-included-popt
|
||||
--with${if avahi != null then "" else "out"}-avahi
|
||||
--with${if gtk != null then "" else "out"}-gtk
|
||||
--without-gnome
|
||||
--enable-rfc2553
|
||||
)
|
||||
'';
|
||||
patches = [ ./20-minute-io-timeout.patch ];
|
||||
|
||||
# The test suite fails because it uses hard-coded paths, i.e. /usr/bin/gcc.
|
||||
doCheck = false;
|
||||
|
29
pkgs/development/tools/misc/gengetopt/default.nix
Normal file
29
pkgs/development/tools/misc/gengetopt/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ fetchurl, stdenv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gengetopt-2.22.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/gengetopt/${name}.tar.gz";
|
||||
sha256 = "08a4wmzvin8ljdgw2c0mcz654h4hpzam2p43hsf951c0xhj6ppsf";
|
||||
};
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "GNU Gengetopt, a command-line option parser generator";
|
||||
|
||||
longDescription =
|
||||
'' GNU Gengetopt program generates a C function that uses getopt_long
|
||||
function to parse the command line options, to validate them and
|
||||
fills a struct
|
||||
'';
|
||||
|
||||
homepage = http://www.gnu.org/software/gengetopt/;
|
||||
|
||||
license = "GPLv3+";
|
||||
|
||||
maintainers = [ stdenv.lib.maintainers.ludo ];
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
@ -1,14 +1,22 @@
|
||||
{stdenv, fetchurl, bison, flex}:
|
||||
{ stdenv, fetchurl, bison, flex, autoconf, automake }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "kbd-1.15";
|
||||
name = "kbd-1.15.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.altlinux.org/pub/people/legion/kbd/${name}.tar.gz";
|
||||
sha256 = "1h2klv4sxf0j08fzlpki2zf7f4k7m0j1d0ca01a1bsd8yza0l39d";
|
||||
sha256 = "1klrxas8vjikx6jm6m2lcpmn88lhxb6p3whwgdwq9d9flf1qrf4i";
|
||||
};
|
||||
|
||||
buildInputs = [bison flex];
|
||||
buildInputs = [ bison flex autoconf automake ];
|
||||
|
||||
# Grrr, kbd 1.15.1 doesn't include a configure script.
|
||||
preConfigure = "autoreconf";
|
||||
|
||||
makeFlags = "setowner= ";
|
||||
|
||||
meta = {
|
||||
homepage = ftp://ftp.altlinux.org/pub/people/legion/kbd/;
|
||||
description = "Linux keyboard utilities and keyboard maps";
|
||||
};
|
||||
}
|
||||
|
@ -254,4 +254,10 @@ rec {
|
||||
HZ_300 y
|
||||
HZ 300
|
||||
'';
|
||||
|
||||
forceCFSched = ''
|
||||
SCHED_CFS? y
|
||||
SCHED_BFS? n
|
||||
NO_HZ? y
|
||||
'';
|
||||
}
|
||||
|
25
pkgs/os-specific/linux/keyutils/default.nix
Normal file
25
pkgs/os-specific/linux/keyutils/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "keyutils-1.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://people.redhat.com/dhowells/keyutils/keyutils-1.2.tar.bz2;
|
||||
sha256 = "0gcv47crbaw6crgn02j1w75mknhnwgkhmfcmwq2qi9iwiwprnv9h";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
sed -i -e "s, /etc, $out/etc," \
|
||||
-e "s, /bin, $out/bin," \
|
||||
-e "s, /sbin, $out/sbin," \
|
||||
-e "s, /lib, $out/lib," \
|
||||
-e "s,/usr,$out," \
|
||||
Makefile
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://people.redhat.com/dhowells/keyutils/;
|
||||
description = "Tools used to control the Linux kernel key management system";
|
||||
license = "GPLv2+";
|
||||
};
|
||||
}
|
@ -57,7 +57,7 @@ import ../kernel/generic.nix (
|
||||
${blockDevices}
|
||||
${bluetooth}
|
||||
${misc}
|
||||
${if stdenv.lib.attrByPath ["features" "ckSched"] false args then bfsched else ""}
|
||||
${if stdenv.lib.attrByPath ["features" "ckSched"] false args then bfsched else forceCFSched}
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
|
25
pkgs/tools/cd-dvd/mkisofs/default.nix
Normal file
25
pkgs/tools/cd-dvd/mkisofs/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ fetchurl, stdenv, gettext }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mkisofs-1.13";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/isofsmk/${name}.tar.gz";
|
||||
sha256 = "13f8zynl64aaqjgxf0m1m2gbizdh7ndicg5d1bm6s0x97bqifrfn";
|
||||
};
|
||||
|
||||
buildInputs = [ gettext ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
homepage = http://savannah.gnu.org/projects/isofsmk;
|
||||
|
||||
description = "GNU mkisofs, an ISO 9660 filesystem builder";
|
||||
|
||||
license = "GPLv3+";
|
||||
|
||||
maintainers = [ stdenv.lib.maintainers.ludo ];
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
@ -1,9 +1,15 @@
|
||||
{stdenv, fetchurl}:
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "genext2fs-1.4.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/genext2fs/genext2fs-1.4.1.tar.gz;
|
||||
sha256 = "1z7czvsf3ircvz2cw1cf53yifsq29ljxmj15hbgc79l6gbxbnka0";
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = http://genext2fs.sourceforge.net/;
|
||||
description = "A tool to generate ext2 filesystem images without requiring root privileges";
|
||||
};
|
||||
}
|
||||
|
79
pkgs/tools/misc/w3c-css-validator/default.nix
Normal file
79
pkgs/tools/misc/w3c-css-validator/default.nix
Normal file
@ -0,0 +1,79 @@
|
||||
args: with args;
|
||||
|
||||
let
|
||||
|
||||
inherit (args.stdenv) lib;
|
||||
|
||||
sources = [
|
||||
(fetchurl {
|
||||
name = "jigsaw_2.2.6.tar.gz";
|
||||
url="http://jigsaw.w3.org/Distrib/jigsaw_2.2.6.tar.gz";
|
||||
sha256 = "01cjpqjcs8gbvvzy0f488cb552f9b38hvwr97wydglrzndmcwypd";
|
||||
})
|
||||
(fetchurl {
|
||||
name = "commons-collectionurl3.2.1-bin.tar.gz";
|
||||
url="http://www.apache.org/dist/commons/collections/binaries/commons-collections-3.2.1-bin.tar.gz";
|
||||
sha256 = "7843f8307495b2be446353b10c25218793b776fa3e22615a1f50f067d81713ce";
|
||||
})
|
||||
(fetchurl {
|
||||
name = "commons-lang-2.4-bin.tar.gz";
|
||||
url="http://www.apache.org/dist/commons/lang/binaries/commons-lang-2.4-bin.tar.gz";
|
||||
sha256 = "0phwlgnvwj3n3j1aka2pkm0biacvgs72qc0ldir6s69i9qbv7rh0";
|
||||
})
|
||||
|
||||
(fetchurl {
|
||||
name = "velocity-1.6.1.tar.gz";
|
||||
url="http://www.apache.org/dist/velocity/engine/1.6.1/velocity-1.6.1.tar.gz";
|
||||
sha256 = "125s8yp8whx947kahm902wc49ms44knxdj6yfskhpk0a8h0rz9jm";
|
||||
})
|
||||
(fetchurl {
|
||||
name = "Xerces-J-bin.2.9.1.tar.gz";
|
||||
url="http://www.apache.org/dist/xerces/j/Xerces-J-bin.2.9.1.tar.gz";
|
||||
sha256 = "1xlrrznfgdars0a9m9z5k9q8arbqskdfdfjx4s0pp52wn3r0gbns";
|
||||
})
|
||||
];
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "w3c-css-validator";
|
||||
|
||||
# REGION AUTO UPDATE: { name="w3c-css-validator"; type="cvs"; cvsRoot=":pserver:anonymous:anonymous@dev.w3.org:/sources/public"; module="2002/css-validator"; }
|
||||
src = sourceFromHead "w3c-css-validator-F_17-52-37.tar.gz"
|
||||
(fetchurl { url = "http://mawercer.de/~nix/repos/w3c-css-validator-F_17-52-37.tar.gz"; sha256 = "b6f05d4812eaa464906d101242689effa8b5516d32d6420315740a77d8ee11fd"; });
|
||||
# END
|
||||
|
||||
buildInputs = [apacheAnt];
|
||||
|
||||
# prepare target downloads dependency .tar.gz into tmp
|
||||
# note: There is a .war as well which could be deployed to tomcat
|
||||
installPhase = ''
|
||||
cd css-validator
|
||||
mkdir tmp
|
||||
${ lib.concatStringsSep "\n" (map (src: "tar xfz ${src} -C tmp") sources) }
|
||||
sed -i -e 's@<property name="servlet.lib" value=".*"/>@<property name="servlet.lib" value="${tomcat}/lib/servlet-api.jar"/>@' \
|
||||
-e '/dest="tmp\//d' \
|
||||
-e '/untar/d' \
|
||||
build.xml
|
||||
ant
|
||||
ensureDir $out/{bin,lib}
|
||||
JAR=$out/lib/css-validator.jar
|
||||
cat >> $out/bin/css-validator << EOF
|
||||
#!/bin/sh
|
||||
exec ${jre}/bin/java -jar $JAR "\$@"
|
||||
EOF
|
||||
chmod +x $out/bin/css-validator
|
||||
cp css-validator.jar $out/lib
|
||||
cp -r lib $out/lib/lib
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "w3c CSS validator";
|
||||
homepage = http://dev.w3.org/cvsweb/2002/css-validator/;
|
||||
# dependencies ship their own license files
|
||||
# I think all .java files are covered by this license (?)
|
||||
license = "w3c"; # http://www.w3.org/Consortium/Legal/
|
||||
maintainers = [args.lib.maintainers.marcweber];
|
||||
platforms = args.lib.platforms.linux;
|
||||
};
|
||||
}
|
73
pkgs/tools/networking/swec/default.nix
Normal file
73
pkgs/tools/networking/swec/default.nix
Normal file
@ -0,0 +1,73 @@
|
||||
{ fetchurl, stdenv, makeWrapper, perl, LWP, URI, HTMLParser
|
||||
, HTTPServerSimple, Parent }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "swec-0.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://random.zerodogg.org/files/${name}.tar.bz2";
|
||||
sha256 = "1m3971z4z1wr0paggprfz0n8ng8vsnkc9m6s3bdplgyz7qjk6jwx";
|
||||
};
|
||||
|
||||
buildInputs = [ makeWrapper perl LWP URI HTMLParser ]
|
||||
++ stdenv.lib.optional doCheck [ HTTPServerSimple Parent ];
|
||||
|
||||
configurePhase =
|
||||
'' for i in swec tests/{runTests,testServer}
|
||||
do
|
||||
sed -i "$i" -e's|/usr/bin/perl|${perl}/bin/perl|g'
|
||||
done
|
||||
'';
|
||||
|
||||
buildPhase = "true";
|
||||
installPhase =
|
||||
'' make install prefix="$out"
|
||||
|
||||
ensureDir "$out/share/${name}"
|
||||
cp -v default.sdf "$out/share/${name}"
|
||||
sed -i "$out/bin/swec" -e"s|realpath(\$0)|'$out/share/${name}/swec'|g"
|
||||
|
||||
wrapProgram "$out/bin/swec" \
|
||||
--prefix PERL5LIB : \
|
||||
${stdenv.lib.concatStringsSep ":"
|
||||
(map (x: "${x}/lib/perl5/site_perl") [ LWP URI HTMLParser ])}
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = "make test";
|
||||
|
||||
meta = {
|
||||
homepage = http://random.zerodogg.org/swec/;
|
||||
|
||||
description = "Simple Web Error Checker (SWEC)";
|
||||
|
||||
longDescription =
|
||||
'' SWEC (Simple Web Error Checker) is a program that automates testing
|
||||
of dynamic websites. It parses each HTML file it finds for links,
|
||||
and if those links are within the site specified (ie. local, not
|
||||
external), it will check that page as well. In this respect it
|
||||
works a lot like a crawler, in that it'll click on any link it finds
|
||||
(more notes about this later).
|
||||
|
||||
In addition to parsing and locating links, it will also parse the
|
||||
pages looking for known errors and report those (such as Mason or
|
||||
PHP errors), and will report if a page can not be read (by either
|
||||
returning a 404, 500 or similar).
|
||||
|
||||
Since you may often want SWEC to be logged in on your site, you have
|
||||
to be careful. When logged in, SWEC will still click on all links
|
||||
it finds, including things like 'join group' or 'delete account'
|
||||
(though it has some magic trying to avoid the latter). Therefore it
|
||||
is highly recommended that when you run SWEC as a logged-in user on
|
||||
a site, use a test server, not the live one.
|
||||
|
||||
Running SWEC on a live site without being logged in as a user is
|
||||
perfectly fine, it won't do anything a normal crawler wouldn't do
|
||||
(well, not exactly true, SWEC will ignore robots.txt).
|
||||
'';
|
||||
|
||||
license = "GPLv3+";
|
||||
|
||||
maintainers = [ stdenv.lib.maintainers.ludo ];
|
||||
};
|
||||
}
|
@ -4,11 +4,11 @@
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "nix-0.14pre19016";
|
||||
name = "nix-0.14pre19652";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://hydra.nixos.org/build/191984/download/4/${name}.tar.bz2";
|
||||
sha256 = "998d550ff2420d3fe2fdac498136f228845064f4c70fe730410431985a1b5012";
|
||||
url = "http://hydra.nixos.org/build/259251/download/4/${name}.tar.bz2";
|
||||
sha256 = "e96d5e2cc7a86aea0d06f0d81395290d0c259004cc8a56d9eec203d5bb1a9d71";
|
||||
};
|
||||
|
||||
buildInputs = [perl curl openssl];
|
||||
|
18
pkgs/tools/security/ecryptfs/default.nix
Normal file
18
pkgs/tools/security/ecryptfs/default.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{stdenv, fetchurl, fuse, python, perl, keyutils, pam, nss, nspr}:
|
||||
stdenv.mkDerivation {
|
||||
name = "ecryptfs-82";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://launchpad.net/ecryptfs/trunk/82/+download/ecryptfs-utils_82.orig.tar.gz;
|
||||
sha256 = "1w3swispgp71prz8h56hqby2wwnvam5vllqvc69rn8cf605i69a6";
|
||||
};
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-I${nspr}/include/nspr -I${nss}/include/nss";
|
||||
|
||||
buildInputs = [ python perl keyutils pam nss nspr ];
|
||||
|
||||
meta = {
|
||||
description = "Enterprise-class stacked cryptographic filesystem";
|
||||
license = "GPLv2+";
|
||||
};
|
||||
}
|
22
pkgs/tools/system/ipmitool/default.nix
Normal file
22
pkgs/tools/system/ipmitool/default.nix
Normal file
@ -0,0 +1,22 @@
|
||||
{ fetchurl, stdenv, openssl }:
|
||||
|
||||
let
|
||||
pkgname = "ipmitool";
|
||||
version = "1.8.9";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "${pkgname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/${pkgname}/${pkgname}-${version}.tar.gz";
|
||||
sha256 = "1d6bf2595d1fd0dbef206c300cc666d3d079548ba97f727077d61c4736a7e63a";
|
||||
};
|
||||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
meta = {
|
||||
description = ''Command-line interface to IPMI-enabled devices'';
|
||||
license = "BSD";
|
||||
homepage = "http://ipmitool.sourceforge.net";
|
||||
};
|
||||
}
|
@ -10,6 +10,14 @@ stdenv.mkDerivation {
|
||||
sha256 = "2a7c848abea286234adcbb08938cfad50b844ecdfc7770e781289d9d396a1972";
|
||||
};
|
||||
|
||||
# Amazon EC2 requires that disk images are writable. If they're
|
||||
# not, the VM immediately terminates with a mysterious
|
||||
# "Server.InternalError" message. Since disk images generated in
|
||||
# the Nix store are read-only, they must be made writable in the
|
||||
# tarball uploaded to Amazon S3. So add a `--mode=0755' flag to the
|
||||
# tar invocation.
|
||||
patches = [ ./writable.patch ];
|
||||
|
||||
installPhase =
|
||||
''
|
||||
ensureDir $out
|
||||
|
@ -0,0 +1,33 @@
|
||||
diff -rc --exclude '*~' ec2-ami-tools-1.3-45758-orig/lib/ec2/amitools/bundle.rb ec2-ami-tools-1.3-45758/lib/ec2/amitools/bundle.rb
|
||||
*** ec2-ami-tools-1.3-45758-orig/lib/ec2/amitools/bundle.rb 2009-12-02 22:28:44.000000000 +0100
|
||||
--- ec2-ami-tools-1.3-45758/lib/ec2/amitools/bundle.rb 2010-01-22 16:16:13.000000000 +0100
|
||||
***************
|
||||
*** 80,86 ****
|
||||
# piped via several processes. The tee is used to allow a
|
||||
# digest of the file to be calculated without having to re-read
|
||||
# it from disk.
|
||||
! tar = EC2::Platform::Current::Tar::Command.new.create.dereference.sparse
|
||||
tar.add(File::basename( image_file ), File::dirname( image_file ))
|
||||
openssl = EC2::Platform::Current::Constants::Utility::OPENSSL
|
||||
pipeline = EC2::Platform::Current::Pipeline.new('image-bundle-pipeline', debug)
|
||||
--- 80,86 ----
|
||||
# piped via several processes. The tee is used to allow a
|
||||
# digest of the file to be calculated without having to re-read
|
||||
# it from disk.
|
||||
! tar = EC2::Platform::Current::Tar::Command.new.create.dereference.sparse.writable
|
||||
tar.add(File::basename( image_file ), File::dirname( image_file ))
|
||||
openssl = EC2::Platform::Current::Constants::Utility::OPENSSL
|
||||
pipeline = EC2::Platform::Current::Pipeline.new('image-bundle-pipeline', debug)
|
||||
diff -rc --exclude '*~' ec2-ami-tools-1.3-45758-orig/lib/ec2/platform/linux/tar.rb ec2-ami-tools-1.3-45758/lib/ec2/platform/linux/tar.rb
|
||||
*** ec2-ami-tools-1.3-45758-orig/lib/ec2/platform/linux/tar.rb 2009-12-02 22:28:44.000000000 +0100
|
||||
--- ec2-ami-tools-1.3-45758/lib/ec2/platform/linux/tar.rb 2010-01-22 16:16:11.000000000 +0100
|
||||
***************
|
||||
*** 31,36 ****
|
||||
--- 31,37 ----
|
||||
def update; @options << '-u'; self; end
|
||||
def sparse; @options << '-S'; self; end
|
||||
def dereference; @options << '-h'; self; end
|
||||
+ def writable; @options << '--mode=0755'; self; end
|
||||
|
||||
def archive(filename)
|
||||
filename = '-' if filename.nil?
|
@ -625,6 +625,10 @@ let
|
||||
inherit fetchurl stdenv pkgconfig libuuid;
|
||||
};
|
||||
|
||||
ecryptfs = import ../tools/security/ecryptfs {
|
||||
inherit fetchurl stdenv fuse python perl keyutils pam nss nspr;
|
||||
};
|
||||
|
||||
enblendenfuse = import ../tools/graphics/enblend-enfuse {
|
||||
inherit fetchurl stdenv libtiff libpng lcms libxmi boost;
|
||||
};
|
||||
@ -733,6 +737,10 @@ let
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
gengetopt = import ../development/tools/misc/gengetopt {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
getopt = import ../tools/misc/getopt {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
@ -916,6 +924,10 @@ let
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
ipmitool = import ../tools/system/ipmitool {
|
||||
inherit fetchurl stdenv openssl;
|
||||
};
|
||||
|
||||
jdiskreport = import ../tools/misc/jdiskreport {
|
||||
inherit fetchurl stdenv unzip jdk;
|
||||
};
|
||||
@ -1038,6 +1050,10 @@ let
|
||||
inherit (xlibs) libX11;
|
||||
};
|
||||
|
||||
mkisofs = import ../tools/cd-dvd/mkisofs {
|
||||
inherit fetchurl stdenv gettext;
|
||||
};
|
||||
|
||||
mktemp = import ../tools/security/mktemp {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
@ -1529,6 +1545,11 @@ let
|
||||
inherit fetchurl stdenv pam;
|
||||
};
|
||||
|
||||
swec = import ../tools/networking/swec {
|
||||
inherit fetchurl stdenv makeWrapper perl;
|
||||
inherit (perlPackages) LWP URI HTMLParser HTTPServerSimple Parent;
|
||||
};
|
||||
|
||||
system_config_printer = import ../tools/misc/system-config-printer {
|
||||
inherit stdenv fetchurl perl perlXMLParser desktop_file_utils;
|
||||
};
|
||||
@ -1671,6 +1692,11 @@ let
|
||||
inherit fetchurl stdenv automake autoconf libtool;
|
||||
};
|
||||
|
||||
w3cCSSValidator = import ../tools/misc/w3c-css-validator {
|
||||
inherit fetchurl stdenv apacheAnt jre sourceFromHead lib;
|
||||
tomcat = tomcat6;
|
||||
};
|
||||
|
||||
wdfs = import ../tools/filesystems/wdfs {
|
||||
inherit stdenv fetchurl neon fuse pkgconfig glib;
|
||||
};
|
||||
@ -1813,6 +1839,10 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
ecl = builderDefsPackage ../development/compilers/ecl {
|
||||
inherit gmp mpfr;
|
||||
};
|
||||
|
||||
adobeFlexSDK33 = import ../development/compilers/adobe-flex-sdk {
|
||||
inherit fetchurl stdenv unzip jre;
|
||||
};
|
||||
@ -2842,10 +2872,12 @@ let
|
||||
};
|
||||
|
||||
distcc = import ../development/tools/misc/distcc {
|
||||
inherit fetchurl stdenv popt python;
|
||||
inherit fetchurl stdenv popt;
|
||||
python = if getPkgConfig "distcc" "python" true then python else null;
|
||||
avahi = if getPkgConfig "distcc" "avahi" false then avahi else null;
|
||||
pkgconfig = if getPkgConfig "distcc" "gtk" false then pkgconfig else null;
|
||||
gtk = if getPkgConfig "distcc" "gtk" false then gtkLibs.gtk else null;
|
||||
static = getPkgConfig "distcc" "static" false;
|
||||
};
|
||||
|
||||
docutils = builderDefsPackage (import ../development/tools/documentation/docutils) {
|
||||
@ -3967,6 +3999,10 @@ let
|
||||
inherit (xlibs) libXp libXau;
|
||||
};
|
||||
|
||||
levmar = import ../development/libraries/levmar {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
lib3ds = import ../development/libraries/lib3ds {
|
||||
inherit fetchurl stdenv unzip;
|
||||
};
|
||||
@ -4166,6 +4202,10 @@ let
|
||||
inherit fetchurl stdenv pkgconfig libraw1394;
|
||||
};
|
||||
|
||||
libiptcdata = import ../development/libraries/libiptcdata {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
libjingle = import ../development/libraries/libjingle/0.3.11.nix {
|
||||
inherit fetchurl stdenv mediastreamer;
|
||||
};
|
||||
@ -5689,7 +5729,7 @@ let
|
||||
};
|
||||
|
||||
kbd = import ../os-specific/linux/kbd {
|
||||
inherit fetchurl stdenv bison flex;
|
||||
inherit fetchurl stdenv bison flex autoconf automake;
|
||||
};
|
||||
|
||||
linuxHeaders = linuxHeaders_2_6_28;
|
||||
@ -5929,6 +5969,10 @@ let
|
||||
inherit fetchurl stdenv perl mktemp module_init_tools;
|
||||
});
|
||||
|
||||
keyutils = import ../os-specific/linux/keyutils {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
libselinux = import ../os-specific/linux/libselinux {
|
||||
inherit fetchurl stdenv libsepol;
|
||||
};
|
||||
@ -6299,6 +6343,10 @@ let
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
cacert = import ../data/misc/cacert {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
corefonts = import ../data/fonts/corefonts {
|
||||
inherit fetchurl stdenv cabextract;
|
||||
};
|
||||
@ -6788,6 +6836,12 @@ let
|
||||
inherit (gtkLibs) gtk glib;
|
||||
};
|
||||
|
||||
digikam = import ../applications/graphics/digikam {
|
||||
inherit stdenv fetchurl exiv2 zlib libjpeg perl libpng expat qt3 cmake;
|
||||
inherit (kde3) kdelibs;
|
||||
inherit (xlibs) libXt libXext;
|
||||
};
|
||||
|
||||
djvulibre = import ../applications/misc/djvulibre {
|
||||
inherit stdenv fetchurl libjpeg libtiff libungif zlib
|
||||
ghostscript libpng x11 mesa;
|
||||
@ -6959,6 +7013,11 @@ let
|
||||
emacs22Packages = emacsPackages emacs22;
|
||||
emacs23Packages = emacsPackages emacs23;
|
||||
|
||||
epdfview = import ../applications/misc/epdfview {
|
||||
inherit stdenv fetchurl pkgconfig poppler;
|
||||
inherit (gtkLibs) gtk;
|
||||
};
|
||||
|
||||
evince = makeOverridable (import ../applications/misc/evince) {
|
||||
inherit fetchurl stdenv perl perlXMLParser gettext intltool
|
||||
pkgconfig poppler libspectre djvulibre libxslt
|
||||
@ -7022,38 +7081,28 @@ let
|
||||
|
||||
firefoxWrapper = firefox35Wrapper;
|
||||
|
||||
firefox2 = lowPrio (import ../applications/networking/browsers/firefox/2.0.nix {
|
||||
inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo;
|
||||
inherit (gtkLibs) gtk;
|
||||
inherit (gnome) libIDL;
|
||||
inherit (xlibs) libXi;
|
||||
});
|
||||
|
||||
firefox2Wrapper = wrapFirefox firefox2 "firefox" "";
|
||||
|
||||
firefox3Pkgs = lowPrio (import ../applications/networking/browsers/firefox/3.0.nix {
|
||||
inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo
|
||||
python dbus dbus_glib freetype fontconfig bzip2 xlibs file;
|
||||
inherit (gtkLibs) gtk pango;
|
||||
inherit (gnome) libIDL;
|
||||
});
|
||||
|
||||
firefox3 = firefox3Pkgs.firefox;
|
||||
xulrunner3 = firefox3Pkgs.xulrunner;
|
||||
firefox3Wrapper = wrapFirefox firefox3 "firefox" "";
|
||||
|
||||
firefox35Pkgs = lowPrio (import ../applications/networking/browsers/firefox/3.5.nix {
|
||||
firefox35Pkgs = import ../applications/networking/browsers/firefox/3.5.nix {
|
||||
inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo
|
||||
python dbus dbus_glib freetype fontconfig bzip2 xlibs file alsaLib
|
||||
nspr nss;
|
||||
inherit (gtkLibs) gtk pango;
|
||||
inherit (gnome) libIDL;
|
||||
});
|
||||
};
|
||||
|
||||
firefox35 = firefox35Pkgs.firefox;
|
||||
xulrunner35 = firefox35Pkgs.xulrunner;
|
||||
firefox35Wrapper = wrapFirefox firefox35 "firefox" "";
|
||||
|
||||
firefox36Pkgs = import ../applications/networking/browsers/firefox/3.6.nix {
|
||||
inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo
|
||||
python dbus dbus_glib freetype fontconfig bzip2 xlibs file alsaLib
|
||||
nspr nss libnotify;
|
||||
inherit (gtkLibs) gtk pango;
|
||||
inherit (gnome) libIDL;
|
||||
};
|
||||
|
||||
firefox36Wrapper = lowPrio (wrapFirefox firefox36Pkgs.firefox "firefox" "");
|
||||
|
||||
flac = import ../applications/audio/flac {
|
||||
inherit fetchurl stdenv libogg;
|
||||
};
|
||||
@ -7063,7 +7112,7 @@ let
|
||||
flashplayer9 = (
|
||||
import ../applications/networking/browsers/mozilla-plugins/flashplayer-9 {
|
||||
inherit fetchurl stdenv zlib alsaLib nss nspr fontconfig freetype expat;
|
||||
inherit (xlibs) libX11 libXext libXrender libXt ;
|
||||
inherit (xlibs) libX11 libXext libXrender libXt;
|
||||
inherit (gtkLibs) gtk glib pango atk;
|
||||
});
|
||||
|
||||
@ -7119,6 +7168,7 @@ let
|
||||
inherit pkgs;
|
||||
});
|
||||
git = gitAndTools.git;
|
||||
gitFull = gitAndTools.gitFull;
|
||||
|
||||
gnucash = import ../applications/office/gnucash {
|
||||
inherit fetchurl stdenv pkgconfig libxml2 goffice enchant
|
||||
@ -7457,7 +7507,7 @@ let
|
||||
};
|
||||
|
||||
meshlab = import ../applications/graphics/meshlab {
|
||||
inherit fetchurl stdenv bzip2;
|
||||
inherit fetchurl stdenv bzip2 lib3ds levmar muparser unzip;
|
||||
qt = qt4;
|
||||
};
|
||||
|
||||
@ -7707,6 +7757,12 @@ let
|
||||
libXtst xextproto libXi;
|
||||
};
|
||||
|
||||
rawtherapee = import ../applications/graphics/rawtherapee {
|
||||
inherit fetchsvn stdenv pkgconfig cmake lcms libiptcdata;
|
||||
inherit (gtkLibs) gtk gtkmm;
|
||||
inherit (xlibs) libXau libXdmcp pixman libpthreadstubs;
|
||||
};
|
||||
|
||||
rcs = import ../applications/version-management/rcs {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
@ -1852,6 +1852,14 @@ rec {
|
||||
propagatedBuildInputs = [UNIVERSALrequire];
|
||||
};
|
||||
|
||||
PadWalker = buildPerlPackage rec {
|
||||
name = "PadWalker-1.9";
|
||||
src = fetchurl {
|
||||
url = "mirror://cpan/authors/id/R/RO/ROBIN/${name}.tar.gz";
|
||||
sha256 = "0lvh0qlyrpnkssqkhfxhbjpb5lyr4fp6d1p7la8k6w3wv1qmbl1s";
|
||||
};
|
||||
};
|
||||
|
||||
Perl6Junction = buildPerlPackage rec {
|
||||
name = "Perl6-Junction-1.40000";
|
||||
src = fetchurl {
|
||||
|
@ -80,6 +80,9 @@ rec {
|
||||
|
||||
propagatedBuildInputs = [ twisted pkgs.pyopenssl ];
|
||||
|
||||
# For some reason "python setup.py test" doesn't work with Python 2.6.
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = http://foolscap.lothar.com/;
|
||||
|
||||
|
@ -183,9 +183,6 @@ in {
|
||||
feh = linux;
|
||||
file = all;
|
||||
findutils = all;
|
||||
firefox2 = linux;
|
||||
firefox3 = prio 150 linux;
|
||||
firefox35 = linux;
|
||||
flex = all;
|
||||
flex2535 = all;
|
||||
fontforge = linux;
|
||||
@ -205,6 +202,7 @@ in {
|
||||
ghostscriptX = linux;
|
||||
gimp = linux;
|
||||
git = linux;
|
||||
gitFull = linux;
|
||||
glibc = linux;
|
||||
glibcLocales = linux;
|
||||
glxinfo = linux;
|
||||
@ -228,6 +226,7 @@ in {
|
||||
gqview = gtkSupported;
|
||||
graphviz = all;
|
||||
grub = linux;
|
||||
grub2 = linux;
|
||||
gsl = linux;
|
||||
guile = linux; # tests fail on Cygwin
|
||||
guileLib = linux;
|
||||
@ -244,6 +243,7 @@ in {
|
||||
hugin = linux;
|
||||
iana_etc = linux;
|
||||
icecat3Xul = linux;
|
||||
icewm = linux;
|
||||
idutils = all;
|
||||
ifplugd = linux;
|
||||
imagemagick = allBut "i686-cygwin";
|
||||
@ -483,6 +483,14 @@ in {
|
||||
jdee = linux;
|
||||
};
|
||||
|
||||
firefox35Pkgs = {
|
||||
firefox = prio 150 linux;
|
||||
};
|
||||
|
||||
firefox36Pkgs = {
|
||||
firefox = linux;
|
||||
};
|
||||
|
||||
gnome = {
|
||||
gnome_panel = linux;
|
||||
metacity = linux;
|
||||
|
Loading…
Reference in New Issue
Block a user