mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
Merge branch 'master' into x-updates
Conflicts (both messed with mesa): pkgs/top-level/all-packages.nix
This commit is contained in:
commit
35a927149f
@ -20,20 +20,20 @@ stdenv.mkDerivation {
|
||||
|
||||
patches =
|
||||
let
|
||||
debPrefix = "http://patch-tracker.debian.org/patch/series/dl/xfig/1:3.2.5.b-2";
|
||||
debPrefix = "http://patch-tracker.debian.org/patch/series/dl/xfig/1:3.2.5.b-3";
|
||||
in
|
||||
[
|
||||
(fetchurl {
|
||||
url = "${debPrefix}/35_CVE-2010-4262.dpatch";
|
||||
sha256 = "18741b3dbipgr55fyp5x0296za3336ylln639jw8yjcyd1call22";
|
||||
url = "${debPrefix}/35_CVE-2010-4262.patch";
|
||||
sha256 = "1pj669sz49wzjvvm96gwbnani7wqi0ijh21imqdzqw47qxdv7zp5";
|
||||
})
|
||||
(fetchurl {
|
||||
url = "${debPrefix}/13_remove_extra_libs.dpatch";
|
||||
sha256 = "0v3k30ib7xq5wfhd3yacnal4gbih7nqw0z0aycvc0hafffl97i46";
|
||||
url = "${debPrefix}/13_remove_extra_libs.patch";
|
||||
sha256 = "1qb14ay0c8xrjzhi21jl7sl8mdzxardldzpnflkzml774bbpn8av";
|
||||
})
|
||||
(fetchurl {
|
||||
url = "${debPrefix}/36_libpng15.dpatch";
|
||||
sha256 = "0ssmvlcpjn3iqj3l38db8j8qpqbzixlwpczq01m49r5w9l3viy8k";
|
||||
url = "${debPrefix}/36_libpng15.patch";
|
||||
sha256 = "0jd5bqj7sj9bbnxg2d0y6zmv4ka4qif2x4zc84ngdqga5433anvn";
|
||||
})
|
||||
];
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
{stdenv, fetchurl,
|
||||
zlib, libpng, libjpeg, perl, expat, qt3,
|
||||
libX11, libXext, libSM, libICE,
|
||||
withKde, kdelibs, kdebase
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -13,7 +12,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs =
|
||||
[zlib libpng libX11 libXext libSM libICE perl expat libjpeg]
|
||||
++ (if withKde then [kdelibs] else [])
|
||||
;
|
||||
|
||||
patches = [ ./timezone-glibc.patch ];
|
||||
@ -51,7 +49,6 @@ stdenv.mkDerivation rec {
|
||||
--x-includes=${libX11}/include
|
||||
--x-libraries=${libX11}/lib
|
||||
--with-qt-dir=${qt3}
|
||||
--with-kde-support=${if withKde then "yes" else "no"} --with-ical-support=${if withKde then "yes" else "no"}
|
||||
";
|
||||
|
||||
preInstall = ''
|
||||
@ -61,7 +58,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
installFlags =
|
||||
# kde_locale is not defined when installing without kde.
|
||||
if withKde then "" else "kde_locale=\${out}/share/locale";
|
||||
"kde_locale=\${out}/share/locale";
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.taskjuggler.org";
|
||||
|
@ -1,40 +1,24 @@
|
||||
# Patchelf fails to hard-code the library paths to ledger's
|
||||
# libamounts.so and libledger-2.6.3 shared objects:
|
||||
#
|
||||
# $ ldd ~/.nix-profile/bin/ledger
|
||||
# linux-vdso.so.1 => (0x00007fff513ff000)
|
||||
# libamounts.so.0 => not found
|
||||
# libledger-2.6.3.so => not found
|
||||
# libstdc++.so.6 => /nix/store/3r8kfi33y3lbrsvlx8vzwm74h8178y35-gcc-4.5.1/lib/../lib64/libstdc++.so.6 (0x00007f1f0feee000)
|
||||
# libpcre.so.0 => /nix/store/kfhy189arpj3wrfzpgw8p9ac4g4hfgca-pcre-8.10/lib/libpcre.so.0 (0x00007f1f0fcd3000)
|
||||
# libgmp.so.3 => /nix/store/ji6py9m9w2ray1bmpkmgig9llj1i2ggf-gmp-4.3.2/lib/libgmp.so.3 (0x00007f1f0fa7f000)
|
||||
# libm.so.6 => /nix/store/vxycd107wjbhcj720hzkw2px7s7kr724-glibc-2.12.2/lib/libm.so.6 (0x00007f1f0f7fd000)
|
||||
# libgcc_s.so.1 => /nix/store/3r8kfi33y3lbrsvlx8vzwm74h8178y35-gcc-4.5.1/lib/../lib64/libgcc_s.so.1 (0x00007f1f0f5e8000)
|
||||
# libc.so.6 => /nix/store/vxycd107wjbhcj720hzkw2px7s7kr724-glibc-2.12.2/lib/libc.so.6 (0x00007f1f0f27d000)
|
||||
# /nix/store/vxycd107wjbhcj720hzkw2px7s7kr724-glibc-2.12.2/lib/ld-linux-x86-64.so.2 (0x00007f1f101ef000)
|
||||
#
|
||||
# Fortunately, libtools builds the program with proper paths hard-coded
|
||||
# alread, so we don't need patchelf. Phew!
|
||||
{ stdenv, fetchurl, emacs, gmp, pcre, expat }:
|
||||
|
||||
{stdenv, fetchurl, emacs, gmp, pcre, expat}:
|
||||
|
||||
let
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ledger-2.6.3";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit name;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/downloads/jwiegley/ledger/${name}.tar.gz";
|
||||
url = "https://github.com/downloads/ledger/ledger/${name}.tar.gz";
|
||||
sha256 = "05zpnypcwgck7lwk00pbdlcwa347xsqifxh4zsbbn01m98bx1v5k";
|
||||
};
|
||||
|
||||
buildInputs = [ emacs gmp pcre expat ];
|
||||
|
||||
configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3";
|
||||
dontPatchELF = true;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
# Patchelf breaks the hard-coded rpath to ledger's libamounts.0.so and
|
||||
# libledger-2.6.3.so. Fortunately, libtool chooses proper rpaths to
|
||||
# begin with, so we can just disable patchelf to avoid the issue.
|
||||
dontPatchELF = true;
|
||||
|
||||
meta = {
|
||||
homepage = "http://ledger-cli.org/";
|
||||
description = "A double-entry accounting system with a command-line reporting interface";
|
||||
|
@ -1,105 +0,0 @@
|
||||
source $stdenv/setup
|
||||
|
||||
export nodep=TRUE
|
||||
export NO_HIDS=TRUE
|
||||
|
||||
export PATH=$icu/sbin:$PATH
|
||||
|
||||
postUnpack() {
|
||||
tar xvjf $src_system
|
||||
}
|
||||
|
||||
preConfigure() {
|
||||
./configure --help
|
||||
|
||||
for i in sysui/desktop/share/makefile.mk; do
|
||||
substituteInPlace $i --replace /bin/bash $shell
|
||||
done
|
||||
|
||||
SRCDIR=
|
||||
|
||||
sed -e '/CURL_NO_OLDIES/d' -i ucb/source/ucp/ftp/makefile.mk
|
||||
}
|
||||
|
||||
postConfigure() {
|
||||
for i in LinuxX86*Env.Set; do
|
||||
substituteInPlace $i --replace /usr /no-such-path
|
||||
done
|
||||
substituteInPlace solenv/inc/libs.mk \
|
||||
--replace /usr/lib/libjpeg.so $libjpeg/lib/libjpeg.so \
|
||||
--replace /usr/lib64/libjpeg.so $libjpeg/lib/libjpeg.so
|
||||
}
|
||||
|
||||
buildPhase() {
|
||||
source LinuxX86*Env.Set.sh
|
||||
./bootstrap
|
||||
# bootstrap defines the alias 'build', that mostly runs this perl script:
|
||||
(cd instsetoo_native; perl ../solenv/bin/build.pl --all) # wait a few hours... add -P4 for quadcores
|
||||
}
|
||||
|
||||
wrapSOffice() {
|
||||
local fn=$1
|
||||
local arg=$2
|
||||
|
||||
# !!! should use makeWrapper for this.
|
||||
|
||||
cat > $out/bin/$fn <<EOF
|
||||
#! $shell
|
||||
# Add fontconfig to the library search path; apparently OpenOffice
|
||||
# looks for it at runtime.
|
||||
export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH\${LD_LIBRARY_PATH:+:}$fontconfig/lib:$libjpeg/lib:$cups/lib
|
||||
export JAVA_HOME=$jdk
|
||||
exec $ooFiles/openoffice.org3/program/soffice $arg "\$@"
|
||||
EOF
|
||||
chmod +x $out/bin/$fn
|
||||
}
|
||||
|
||||
installPhase() {
|
||||
ooFiles=$out/lib/openoffice
|
||||
|
||||
# This was all borrowed from ooo-build-2.2.1's bin/ooinstall.
|
||||
# This needs the ./bootstrap having run in the buildPhase to get some env vars.
|
||||
eval $(grep 'BUILD\|LAST_MINOR' $SOLARENV/inc/minor.mk)
|
||||
export PYTHONPATH=$SOLARVERSION/$INPATH/lib:$SRC_ROOT/instsetoo_native/$INPATH/bin:$PYTHONPATH
|
||||
export OUT=../$INPATH
|
||||
export LOCAL_OUT=../$INPATH
|
||||
export LOCAL_COMMON_OUT=../$INPATH
|
||||
|
||||
# Do the actual installation into $out.
|
||||
(cd $SRC_ROOT/instsetoo_native/util && perl -w $SOLARENV/bin/make_installer.pl \
|
||||
-f openoffice.lst -l en-US -p OpenOffice \
|
||||
-buildid $BUILD -simple $ooFiles)
|
||||
|
||||
mkdir -p $out/bin
|
||||
for i in soffice ooffice; do wrapSOffice $i; done
|
||||
|
||||
# Create some wrappers to start individual OpenOffice components.
|
||||
for i in writer calc draw impress base math web; do wrapSOffice oo$i -$i; done
|
||||
|
||||
# Create symlinks to desktop files, so that openoffice.org apps can be picked from
|
||||
# the application menu in KDE and GNOME
|
||||
mkdir -p $out/share
|
||||
ln -s $out/lib/openoffice/openoffice.org3/share/xdg $out/share/applications
|
||||
|
||||
# Apply a minor correction to the *.desktop files in order to correctly address the icons
|
||||
# The openoffice- prefix should be removed from the icon identifiers
|
||||
for appl in $out/share/applications/*.desktop
|
||||
do
|
||||
chmod 644 $appl # What's wrong with the file permissions?
|
||||
sed -i '/Icon/d' $appl
|
||||
echo "Icon=$(echo $(basename $appl) | sed 's/.desktop//')" >> $appl
|
||||
done
|
||||
|
||||
# Copy icons so that the menu items in KDE and GNOME will look much nicer
|
||||
(cd $SRC_ROOT/sysui/desktop/icons
|
||||
install -v -d $out/share/icons/{hicolor,locolor} -m 755
|
||||
cp -rv hicolor/*x* $out/share/icons/hicolor
|
||||
cp -rv locolor/*x* $out/share/icons/locolor
|
||||
)
|
||||
|
||||
# The desktop files expect a openoffice.org3 executable in the PATH, which is a symlink to soffice
|
||||
ln -s $out/bin/soffice $out/bin/openoffice.org3
|
||||
}
|
||||
|
||||
genericBuild
|
||||
|
@ -1,105 +0,0 @@
|
||||
{ stdenv, fetchurl, pam, python, tcsh, libxslt, perl, ArchiveZip
|
||||
, CompressZlib, zlib, libjpeg, expat, pkgconfig, freetype, libwpd
|
||||
, libxml2, db4, sablotron, curl, libXaw, fontconfig, libsndfile, neon
|
||||
, bison, flex, zip, unzip, gtk, libmspack, getopt, file, cairo, which
|
||||
, icu, boost, jdk, ant, libXext, libX11, libXtst, libXi, cups
|
||||
, libXinerama, openssl, gperf, cppunit, GConf, ORBit2
|
||||
}:
|
||||
|
||||
let version = "3.2.1"; in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "openoffice.org-${version}";
|
||||
builder = ./builder.sh;
|
||||
|
||||
downloadRoot = "http://openoffice.mirrorbrain.org/files/stable";
|
||||
versionDirs = true;
|
||||
|
||||
src = fetchurl {
|
||||
url = "${downloadRoot}/${if versionDirs then version + "/" else ""}OOo_${version}_src_core.tar.bz2";
|
||||
sha256 = "0gj2hinhnzkazh44k1an05x5cj7n6721f2grqrkjh31cm38r9p6i";
|
||||
};
|
||||
|
||||
patches = [ ./oo.patch ./root-required.patch ./xlib.patch ];
|
||||
|
||||
postPatch =
|
||||
/* Compiling with GCC 4.5 fails:
|
||||
|
||||
Compiling: cppu/source/AffineBridge/AffineBridge.cxx
|
||||
[...]
|
||||
../../inc/uno/lbnames.h:67:2: error: #error "Supported gcc majors are 2 , 3 and 4 <= 4.4. Unsupported gcc major version."
|
||||
|
||||
However, we can't compile with GCC 4.4 because then we'd end up with
|
||||
two different versions of libstdc++ (because the deps are compiled
|
||||
with 4.5), which isn't supported (link time error.)
|
||||
|
||||
Thus, force compilation with 4.5 and hope for the best. */
|
||||
'' sed -i "cppu/inc/uno/lbnames.h" \
|
||||
-e 's/#[[:blank:]]*error "Supported.*$//g'
|
||||
'';
|
||||
|
||||
src_system = fetchurl {
|
||||
url = "${downloadRoot}/${if versionDirs then version + "/" else ""}OOo_${version}_src_system.tar.bz2";
|
||||
sha256 = "0giy3sza64ij19w7b06rxcrkrb5kq2fvkz486vh3mv08s8xa8zfc";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
PATH=$PATH:${icu}/sbin
|
||||
'';
|
||||
|
||||
configureFlags = "
|
||||
--with-package-format=native
|
||||
--disable-epm
|
||||
--disable-fontooo
|
||||
--disable-gnome-vfs
|
||||
--disable-gnome-vfs
|
||||
--disable-mathmldtd
|
||||
--disable-mozilla
|
||||
--disable-odk
|
||||
--disable-pasf
|
||||
--with-cairo
|
||||
--with-system-libs
|
||||
--with-system-python
|
||||
--with-system-boost
|
||||
--with-system-db
|
||||
--with-jdk-home=${jdk}
|
||||
--with-ant-home=${ant}
|
||||
--without-afms
|
||||
--without-dict
|
||||
--without-fonts
|
||||
--without-myspell-dicts
|
||||
--without-nas
|
||||
--without-ppds
|
||||
--without-system-agg
|
||||
--without-system-beanshell
|
||||
--without-system-hsqldb
|
||||
--without-system-xalan
|
||||
--without-system-xerces
|
||||
--without-system-xml-apis
|
||||
--without-system-xt
|
||||
--without-system-jars
|
||||
--without-system-hunspell
|
||||
--without-system-altlinuxhyph
|
||||
--without-system-lpsolve
|
||||
--without-system-graphite
|
||||
";
|
||||
|
||||
LD_LIBRARY_PATH = "${libXext}/lib:${libX11}/lib:${libXtst}/lib:${libXi}/lib:${libjpeg}/lib";
|
||||
|
||||
buildInputs = [
|
||||
pam python tcsh libxslt perl ArchiveZip CompressZlib zlib
|
||||
libjpeg expat pkgconfig freetype libwpd libxml2 db4 sablotron curl
|
||||
libXaw fontconfig libsndfile neon bison flex zip unzip gtk libmspack
|
||||
getopt file jdk cairo which icu boost libXext libX11 libXtst libXi
|
||||
cups libXinerama openssl gperf GConf ORBit2
|
||||
];
|
||||
|
||||
inherit icu fontconfig libjpeg jdk cups;
|
||||
|
||||
meta = {
|
||||
description = "OpenOffice.org is a multiplatform and multilingual office suite";
|
||||
homepage = http://www.openoffice.org/;
|
||||
license = "LGPL";
|
||||
maintainers = [ stdenv.lib.maintainers.raskin ];
|
||||
};
|
||||
}
|
@ -1,72 +0,0 @@
|
||||
diff --git a/libtextcat/makefile.mk b/libtextcat/makefile.mk
|
||||
index 74c64bf..fbf8d21 100644
|
||||
--- a/libtextcat/makefile.mk
|
||||
+++ b/libtextcat/makefile.mk
|
||||
@@ -57,7 +57,7 @@ ADDITIONAL_FILES= \
|
||||
#CONFIGURE_DIR=$(BUILD_DIR)
|
||||
|
||||
#relative to CONFIGURE_DIR
|
||||
-CONFIGURE_ACTION=configure CFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS)"
|
||||
+CONFIGURE_ACTION=configure CFLAGS="$(ARCH_FLAGS) $(EXTRA_CFLAGS)" --prefix=$(TMPDIR)
|
||||
CONFIGURE_FLAGS=$(eq,$(OS),MACOSX CPPFLAGS="$(EXTRA_CDEFS)" $(NULL))
|
||||
|
||||
BUILD_ACTION=make
|
||||
diff --git a/redland/raptor/makefile.mk b/redland/raptor/makefile.mk
|
||||
index 0d92de9..aae3b4f 100644
|
||||
--- a/redland/raptor/makefile.mk
|
||||
+++ b/redland/raptor/makefile.mk
|
||||
@@ -130,7 +130,7 @@ XSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config
|
||||
CONFIGURE_DIR=
|
||||
CONFIGURE_ACTION=.$/configure
|
||||
# do not enable grddl parser (#i93768#)
|
||||
-CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --enable-parsers="rdfxml ntriples turtle trig guess rss-tag-soup" --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml
|
||||
+CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --enable-parsers="rdfxml ntriples turtle trig guess rss-tag-soup" --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml --prefix=$(TMPDIR)
|
||||
BUILD_ACTION=$(GNUMAKE)
|
||||
BUILD_FLAGS+= -j$(EXTMAXPROCESS)
|
||||
BUILD_DIR=$(CONFIGURE_DIR)
|
||||
diff --git a/redland/rasqal/makefile.mk b/redland/rasqal/makefile.mk
|
||||
index fba6460..fc70419 100644
|
||||
--- a/redland/rasqal/makefile.mk
|
||||
+++ b/redland/rasqal/makefile.mk
|
||||
@@ -126,7 +126,7 @@ XSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config
|
||||
|
||||
CONFIGURE_DIR=
|
||||
CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH"
|
||||
-CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml
|
||||
+CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml --prefix=$(TMPDIR)
|
||||
BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) $(GNUMAKE)
|
||||
BUILD_FLAGS+= -j$(EXTMAXPROCESS)
|
||||
BUILD_DIR=$(CONFIGURE_DIR)
|
||||
diff --git a/redland/redland/makefile.mk b/redland/redland/makefile.mk
|
||||
index 710d7d6..dd60f0d 100644
|
||||
--- a/redland/redland/makefile.mk
|
||||
+++ b/redland/redland/makefile.mk
|
||||
@@ -132,7 +132,7 @@ XSLTLIB!:=$(XSLTLIB) # expand dmake variables for xslt-config
|
||||
|
||||
CONFIGURE_DIR=
|
||||
CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH"
|
||||
-CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --with-raptor=system --with-rasqual=system --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml
|
||||
+CONFIGURE_FLAGS=--disable-static --disable-gtk-doc --with-threads --with-openssl-digests --with-xml-parser=libxml --with-raptor=system --with-rasqual=system --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml --prefix=$(TMPDIR)
|
||||
BUILD_ACTION=$(AUGMENT_LIBRARY_PATH) $(GNUMAKE)
|
||||
BUILD_FLAGS+= -j$(EXTMAXPROCESS)
|
||||
BUILD_DIR=$(CONFIGURE_DIR)
|
||||
diff --git a/hunspell/hunspell-1.2.8.patch b/hunspell/hunspell-1.2.8.patch
|
||||
index 37b7964..e6fd962 100644
|
||||
--- a/hunspell/hunspell-1.2.8.patch
|
||||
+++ b/hunspell/hunspell-1.2.8.patch
|
||||
@@ -619,3 +619,15 @@
|
||||
p++;
|
||||
}
|
||||
if (i > 0 && buf[i - 1] == '\n') {
|
||||
+diff --git a/hunspell/unxlngi6.pro/misc/build/hunspell-1.2.8/tests/test.sh b/hunspell/unxlngi6.pro/misc/build/hunspell-1.1.12/tests/test.sh
|
||||
+index 90080f6..f069517 100755
|
||||
+--- a/hunspell/unxlngi6.pro/misc/build/hunspell-1.2.8/tests/test.sh
|
||||
++++ b/hunspell/unxlngi6.pro/misc/build/hunspell-1.2.8/tests/test.sh
|
||||
+--- misc/hunspell-1.2.8/tests/test.sh Sep 4 01:25:35 2007
|
||||
++++ misc/build/hunspell-1.2.8/tests/test.sh Jun 18 11:53:11 2008
|
||||
+@@ -1,4 +1,4 @@
|
||||
+-#!/bin/bash
|
||||
++#!/bin/sh
|
||||
+ export LC_ALL="C"
|
||||
+
|
||||
+ function check_valgrind_log () {
|
@ -1,25 +0,0 @@
|
||||
As nix chroot environment does not have the 'root' as owner, we have to disable
|
||||
the "owner=root" tar parameters when doing these tar files.
|
||||
They are built at openoffice build time.
|
||||
diff --git a/sysui/desktop/slackware/makefile.mk b/sysui/desktop/slackware/makefile.mk
|
||||
index 3342aca..49679b1 100644
|
||||
--- a/sysui/desktop/slackware/makefile.mk
|
||||
+++ b/sysui/desktop/slackware/makefile.mk
|
||||
@@ -100,7 +100,7 @@ $(MISC)/$(TARGET)/usr/share/applications/ :
|
||||
|
||||
$(MISC)/$(TARGET)/empty.tar :
|
||||
@$(MKDIRHIER) $(@:d)/empty
|
||||
- @tar -C $(MISC)/$(TARGET)/empty --owner=root --group=root --same-owner -cf $@ .
|
||||
+ @tar -C $(MISC)/$(TARGET)/empty -cf $@ .
|
||||
|
||||
|
||||
# --- packaging ---------------------------------------------------
|
||||
@@ -112,7 +112,7 @@ $(MENUFILES) : $(MISC)/$(TARGET)/empty.tar
|
||||
-$(RM) -r $(MISC)$/$(@:b)
|
||||
dmake $(MISC)$/$(@:b)$/usr/share/applications $(MISC)$/$(@:b)$/install$/slack-desc $(MISC)$/$(@:b)$/install$/doinst.sh
|
||||
@$(COPY) $(MISC)/$(TARGET)$/empty.tar $@.tmp
|
||||
- @tar -C $(MISC)/$(@:b) --owner=root --group=root --same-owner --exclude application.flag -rf $@.tmp install usr opt
|
||||
+ @tar -C $(MISC)/$(@:b) --exclude application.flag -rf $@.tmp install usr opt
|
||||
@gzip < $@.tmp > $@
|
||||
@$(RM) $@.tmp
|
||||
$(RM) -r $(MISC)$/$(@:b)
|
@ -1,22 +0,0 @@
|
||||
https://bugs.freedesktop.org/show_bug.cgi?id=31322
|
||||
|
||||
diff -rc OOO320_m19-orig//vcl/unx/inc/dtint.hxx OOO320_m19//vcl/unx/inc/dtint.hxx
|
||||
*** OOO320_m19-orig//vcl/unx/inc/dtint.hxx 2010-05-26 20:34:28.000000000 +0200
|
||||
--- OOO320_m19//vcl/unx/inc/dtint.hxx 2011-02-15 17:04:32.134813676 +0100
|
||||
***************
|
||||
*** 36,42 ****
|
||||
class SalDisplay;
|
||||
class AllSettings;
|
||||
|
||||
! #ifndef _XLIB_H_
|
||||
// forwards from X
|
||||
struct Display;
|
||||
struct XEvent;
|
||||
--- 36,42 ----
|
||||
class SalDisplay;
|
||||
class AllSettings;
|
||||
|
||||
! #if !defined(_XLIB_H_) && !defined(_X11_XLIB_H_)
|
||||
// forwards from X
|
||||
struct Display;
|
||||
struct XEvent;
|
@ -3,6 +3,7 @@
|
||||
, libxslt, tcl, tk, makeWrapper
|
||||
, svnSupport, subversionClient, perlLibs, smtpPerlLibs
|
||||
, guiSupport
|
||||
, withManual ? true
|
||||
, pythonSupport ? true
|
||||
, sendEmailSupport
|
||||
}:
|
||||
@ -26,8 +27,7 @@ stdenv.mkDerivation {
|
||||
patches = [ ./docbook2texi.patch ];
|
||||
|
||||
buildInputs = [curl openssl zlib expat gettext cpio makeWrapper]
|
||||
++ # documentation tools
|
||||
[ asciidoc texinfo xmlto docbook2x
|
||||
++ stdenv.lib.optionals withManual [ asciidoc texinfo xmlto docbook2x
|
||||
docbook_xsl docbook_xml_dtd_45 libxslt ]
|
||||
++ stdenv.lib.optionals guiSupport [tcl tk];
|
||||
|
||||
@ -91,7 +91,7 @@ stdenv.mkDerivation {
|
||||
notSupported $out/libexec/git-core/git-send-email "reinstall with config git = { sendEmailSupport = true } set"
|
||||
'')
|
||||
|
||||
+ ''# Install man pages and Info manual
|
||||
+ stdenv.lib.optionalString withManual ''# Install man pages and Info manual
|
||||
make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES PERL_PATH="${perl}/bin/perl" cmd-list.made install install-info \
|
||||
-C Documentation ''
|
||||
|
||||
|
132
pkgs/applications/video/mplayer2/default.nix
Normal file
132
pkgs/applications/video/mplayer2/default.nix
Normal file
@ -0,0 +1,132 @@
|
||||
{ stdenv, fetchurl, fetchgit, freetype, pkgconfig, yasm, freefont_ttf, ffmpeg, libass
|
||||
, python3, docutils, which
|
||||
, x11Support ? true, libX11 ? null, libXext ? null, mesa ? null
|
||||
, xineramaSupport ? true, libXinerama ? null
|
||||
, xvSupport ? true, libXv ? null
|
||||
, alsaSupport ? true, alsaLib ? null
|
||||
, screenSaverSupport ? true, libXScrnSaver ? null
|
||||
, vdpauSupport ? true, libvdpau ? null
|
||||
, dvdnavSupport ? true, libdvdnav ? null
|
||||
, bluraySupport ? true, libbluray ? null
|
||||
, speexSupport ? true, speex ? null
|
||||
, theoraSupport ? true, libtheora ? null
|
||||
, jackaudioSupport ? false, jackaudio ? null
|
||||
, pulseSupport ? true, pulseaudio ? null
|
||||
# For screenshots
|
||||
, libpngSupport ? true, libpng ? null
|
||||
, useUnfreeCodecs ? false
|
||||
}:
|
||||
|
||||
assert x11Support -> (libX11 != null && libXext != null && mesa != null);
|
||||
assert xineramaSupport -> (libXinerama != null && x11Support);
|
||||
assert xvSupport -> (libXv != null && x11Support);
|
||||
assert alsaSupport -> alsaLib != null;
|
||||
assert screenSaverSupport -> libXScrnSaver != null;
|
||||
assert vdpauSupport -> libvdpau != null;
|
||||
assert dvdnavSupport -> libdvdnav != null;
|
||||
assert bluraySupport -> libbluray != null;
|
||||
assert speexSupport -> speex != null;
|
||||
assert theoraSupport -> libtheora != null;
|
||||
assert jackaudioSupport -> jackaudio != null;
|
||||
assert pulseSupport -> pulseaudio != null;
|
||||
assert libpngSupport -> libpng != null;
|
||||
|
||||
let
|
||||
|
||||
codecs_src =
|
||||
let
|
||||
dir = http://www.mplayerhq.hu/MPlayer/releases/codecs/;
|
||||
in
|
||||
if stdenv.system == "i686-linux" then fetchurl {
|
||||
url = "${dir}/essential-20071007.tar.bz2";
|
||||
sha256 = "18vls12n12rjw0mzw4pkp9vpcfmd1c21rzha19d7zil4hn7fs2ic";
|
||||
} else if stdenv.system == "x86_64-linux" then fetchurl {
|
||||
url = "${dir}/essential-amd64-20071007.tar.bz2";
|
||||
sha256 = "13xf5b92w1ra5hw00ck151lypbmnylrnznq9hhb0sj36z5wz290x";
|
||||
} else if stdenv.system == "powerpc-linux" then fetchurl {
|
||||
url = "${dir}/essential-ppc-20071007.tar.bz2";
|
||||
sha256 = "18mlj8dp4wnz42xbhdk1jlz2ygra6fbln9wyrcyvynxh96g1871z";
|
||||
} else null;
|
||||
|
||||
codecs = if codecs_src != null then stdenv.mkDerivation {
|
||||
name = "MPlayer-codecs-essential-20071007";
|
||||
|
||||
src = codecs_src;
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -prv * $out
|
||||
'';
|
||||
|
||||
meta.license = "unfree";
|
||||
} else null;
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mplayer2-20130130";
|
||||
|
||||
src = fetchgit {
|
||||
url = "git://git.mplayer2.org/mplayer2.git";
|
||||
rev = "d3c580156c0b8777ff082426ebd61bb7ffe0c225";
|
||||
sha256 = "1akf2mb2zklz609ks555vjvcs1gw8nwg5kbb9jwra8c4v1dfyhys";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
sed -i /^_install_strip/d configure
|
||||
'';
|
||||
|
||||
buildInputs = with stdenv.lib;
|
||||
[ freetype pkgconfig ffmpeg libass docutils which ]
|
||||
++ optionals x11Support [ libX11 libXext mesa ]
|
||||
++ optional alsaSupport alsaLib
|
||||
++ optional xvSupport libXv
|
||||
++ optional theoraSupport libtheora
|
||||
++ optional xineramaSupport libXinerama
|
||||
++ optionals dvdnavSupport [ libdvdnav libdvdnav.libdvdread ]
|
||||
++ optional bluraySupport libbluray
|
||||
++ optional jackaudioSupport jackaudio
|
||||
++ optional pulseSupport pulseaudio
|
||||
++ optional screenSaverSupport libXScrnSaver
|
||||
++ optional vdpauSupport libvdpau
|
||||
++ optional speexSupport speex
|
||||
++ optional libpngSupport libpng
|
||||
;
|
||||
|
||||
buildNativeInputs = [ yasm python3 ];
|
||||
|
||||
postConfigure = ''
|
||||
patchShebangs TOOLS
|
||||
'';
|
||||
|
||||
configureFlags = with stdenv.lib;
|
||||
''
|
||||
${optionalString (useUnfreeCodecs && codecs != null) "--codecsdir=${codecs}"}
|
||||
${optionalString (stdenv.isi686 || stdenv.isx86_64) "--enable-runtime-cpudetection"}
|
||||
${optionalString dvdnavSupport "--extra-ldflags=-ldvdread"}
|
||||
${if xvSupport then "--enable-xv" else "--disable-xv"}
|
||||
${if x11Support then "--enable-x11 --enable-gl --extra-cflags=-I{libx11}/include"
|
||||
else "--disable-x11 --disable-gl"}
|
||||
--disable-xvid
|
||||
--disable-ossaudio
|
||||
'';
|
||||
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString x11Support "-lX11 -lXext";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# Provide a reasonable standard font. Maybe we should symlink here.
|
||||
postInstall =
|
||||
''
|
||||
mkdir -p $out/share/mplayer
|
||||
cp ${freefont_ttf}/share/fonts/truetype/FreeSans.ttf $out/share/mplayer/subfont.ttf
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A movie player that supports many video formats (MPlayer fork)";
|
||||
homepage = "http://mplayer2.org";
|
||||
license = "GPLv3+";
|
||||
maintainers = [ stdenv.lib.maintainers.viric ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
{ stdenv, fetchurl, xlibs, zlib, perl, qt3, openssl, pcre
|
||||
, pkgconfig, libtiff, libxml2, libxslt, libtool, expat
|
||||
, freetype, bzip2, cups, attr, acl
|
||||
}:
|
||||
|
||||
let version = "3.5.10"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "kdelibs-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kde/stable/${version}/src/kdelibs-${version}.tar.bz2";
|
||||
sha256 = "0wjw51r96h6rngbsrzndw890xggzvrakydsbaldlrvbh3jq9qzk1";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# We're not supposed to use linux/inotify.h, use sys/inotify.h instead.
|
||||
# Adapted from Gentoo.
|
||||
./inotify.patch
|
||||
|
||||
# Fixes compilation issues with openssl-1.0.0
|
||||
./kdelibs-3.5.10-openssl_1.0.0.patch
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
zlib perl qt3 openssl pcre pkgconfig libtiff libxml2
|
||||
libxslt expat libtool freetype bzip2 cups
|
||||
xlibs.libX11 xlibs.libXt xlibs.libXext xlibs.libXrender xlibs.libXft
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [attr acl];
|
||||
|
||||
# Prevent configure from looking for pkg-config and freetype-config
|
||||
# in the wrong location (it looks in /usr/bin etc. *before* looking
|
||||
# in $PATH).
|
||||
preConfigure = ''
|
||||
substituteInPlace configure \
|
||||
--replace /usr/bin /no-such-path \
|
||||
--replace /usr/local/bin /no-such-path \
|
||||
--replace /opt/local/bin /no-such-path
|
||||
'';
|
||||
|
||||
configureFlags = ''
|
||||
--without-arts
|
||||
--with-ssl-dir=${openssl}
|
||||
--x-includes=${xlibs.libX11}/include
|
||||
--x-libraries=${xlibs.libX11}/lib
|
||||
'';
|
||||
|
||||
meta.platforms = stdenv.lib.platforms.linux;
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
diff -rc kdelibs-3.5.10-orig/kio/kio/kdirwatch.cpp kdelibs-3.5.10/kio/kio/kdirwatch.cpp
|
||||
*** kdelibs-3.5.10-orig/kio/kio/kdirwatch.cpp 2006-07-22 10:16:37.000000000 +0200
|
||||
--- kdelibs-3.5.10/kio/kio/kdirwatch.cpp 2009-04-01 13:26:48.000000000 +0200
|
||||
***************
|
||||
*** 64,74 ****
|
||||
// debug
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
! #ifdef HAVE_INOTIFY
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/syscall.h>
|
||||
- #include <linux/types.h>
|
||||
// Linux kernel headers are documented to not compile
|
||||
#define _S390_BITOPS_H
|
||||
#include <linux/inotify.h>
|
||||
--- 64,76 ----
|
||||
// debug
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
! #if 1
|
||||
! #include <sys/inotify.h>
|
||||
! #include <fcntl.h>
|
||||
! #elif HAVE_INOTIFY
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/syscall.h>
|
||||
// Linux kernel headers are documented to not compile
|
||||
#define _S390_BITOPS_H
|
||||
#include <linux/inotify.h>
|
@ -1,180 +0,0 @@
|
||||
diff -Naur kdelibs-3.5.10-old/kio/kssl/kopenssl.cc kdelibs-3.5.10-new/kio/kssl/kopenssl.cc
|
||||
--- kdelibs-3.5.10-old/kio/kssl/kopenssl.cc 2006-07-22 01:16:39.000000000 -0700
|
||||
+++ kdelibs-3.5.10-new/kio/kssl/kopenssl.cc 2010-03-31 09:34:38.000000000 -0700
|
||||
@@ -96,9 +96,14 @@
|
||||
static int (*K_PEM_ASN1_write_bio) (int (*)(),const char *,BIO *,char *,
|
||||
const EVP_CIPHER *,unsigned char *,int ,
|
||||
pem_password_cb *, void *) = 0L;
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
||||
+static int (*K_ASN1_item_i2d_fp)(ASN1_ITEM *,FILE *,unsigned char *) = 0L;
|
||||
+static ASN1_ITEM *K_NETSCAPE_X509_it = 0L;
|
||||
+#else
|
||||
static ASN1_METHOD* (*K_X509_asn1_meth) (void) = 0L;
|
||||
static int (*K_ASN1_i2d_fp)(int (*)(),FILE *,unsigned char *) = 0L;
|
||||
static int (*K_i2d_ASN1_HEADER)(ASN1_HEADER *, unsigned char **) = 0L;
|
||||
+#endif
|
||||
static int (*K_X509_print_fp) (FILE *, X509*) = 0L;
|
||||
static int (*K_i2d_PKCS12) (PKCS12*, unsigned char**) = 0L;
|
||||
static int (*K_i2d_PKCS12_fp) (FILE *, PKCS12*) = 0L;
|
||||
@@ -404,9 +409,14 @@
|
||||
K_BIO_ctrl = (long (*) (BIO *,int,long,void *)) _cryptoLib->symbol("BIO_ctrl");
|
||||
K_BIO_write = (int (*) (BIO *b, const void *data, int len)) _cryptoLib->symbol("BIO_write");
|
||||
K_PEM_ASN1_write_bio = (int (*)(int (*)(), const char *,BIO*, char*, const EVP_CIPHER *, unsigned char *, int, pem_password_cb *, void *)) _cryptoLib->symbol("PEM_ASN1_write_bio");
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
||||
+ K_ASN1_item_i2d_fp = (int (*)(ASN1_ITEM *, FILE*, unsigned char *)) _cryptoLib->symbol("ASN1_item_i2d_fp");
|
||||
+ K_NETSCAPE_X509_it = (ASN1_ITEM *) _cryptoLib->symbol("NETSCAPE_X509_it");
|
||||
+#else
|
||||
K_X509_asn1_meth = (ASN1_METHOD* (*)(void)) _cryptoLib->symbol("X509_asn1_meth");
|
||||
K_ASN1_i2d_fp = (int (*)(int (*)(), FILE*, unsigned char *)) _cryptoLib->symbol("ASN1_i2d_fp");
|
||||
K_i2d_ASN1_HEADER = (int (*)(ASN1_HEADER *, unsigned char **)) _cryptoLib->symbol("i2d_ASN1_HEADER");
|
||||
+#endif
|
||||
K_X509_print_fp = (int (*)(FILE*, X509*)) _cryptoLib->symbol("X509_print_fp");
|
||||
K_i2d_PKCS12 = (int (*)(PKCS12*, unsigned char**)) _cryptoLib->symbol("i2d_PKCS12");
|
||||
K_i2d_PKCS12_fp = (int (*)(FILE *, PKCS12*)) _cryptoLib->symbol("i2d_PKCS12_fp");
|
||||
@@ -568,7 +578,7 @@
|
||||
K_SSL_set_session = (int (*)(SSL*,SSL_SESSION*)) _sslLib->symbol("SSL_set_session");
|
||||
K_d2i_SSL_SESSION = (SSL_SESSION* (*)(SSL_SESSION**,unsigned char**, long)) _sslLib->symbol("d2i_SSL_SESSION");
|
||||
K_i2d_SSL_SESSION = (int (*)(SSL_SESSION*,unsigned char**)) _sslLib->symbol("i2d_SSL_SESSION");
|
||||
- K_SSL_get_ciphers = (STACK *(*)(const SSL*)) _sslLib->symbol("SSL_get_ciphers");
|
||||
+ K_SSL_get_ciphers = (STACK_OF(SSL_CIPHER) *(*)(const SSL*)) _sslLib->symbol("SSL_get_ciphers");
|
||||
#endif
|
||||
|
||||
|
||||
@@ -956,7 +966,13 @@
|
||||
else return -1;
|
||||
}
|
||||
|
||||
-
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
||||
+int KOpenSSLProxy::ASN1_i2d_fp(FILE *out,unsigned char *x) {
|
||||
+ if (K_ASN1_item_i2d_fp && K_NETSCAPE_X509_it)
|
||||
+ return (K_ASN1_item_i2d_fp)(K_NETSCAPE_X509_it, out, x);
|
||||
+ else return -1;
|
||||
+}
|
||||
+#else
|
||||
ASN1_METHOD *KOpenSSLProxy::X509_asn1_meth(void) {
|
||||
if (K_X509_asn1_meth) return (K_X509_asn1_meth)();
|
||||
else return 0L;
|
||||
@@ -968,7 +984,7 @@
|
||||
return (K_ASN1_i2d_fp)((int (*)())K_i2d_ASN1_HEADER, out, x);
|
||||
else return -1;
|
||||
}
|
||||
-
|
||||
+#endif
|
||||
|
||||
int KOpenSSLProxy::X509_print(FILE *fp, X509 *x) {
|
||||
if (K_X509_print_fp) return (K_X509_print_fp)(fp, x);
|
||||
diff -Naur kdelibs-3.5.10-old/kio/kssl/kopenssl.h kdelibs-3.5.10-new/kio/kssl/kopenssl.h
|
||||
--- kdelibs-3.5.10-old/kio/kssl/kopenssl.h 2006-07-22 01:16:39.000000000 -0700
|
||||
+++ kdelibs-3.5.10-new/kio/kssl/kopenssl.h 2010-03-31 09:35:20.000000000 -0700
|
||||
@@ -48,6 +48,9 @@
|
||||
#include <openssl/stack.h>
|
||||
#include <openssl/bn.h>
|
||||
#undef crypt
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
||||
+#define STACK _STACK
|
||||
+#endif
|
||||
#endif
|
||||
|
||||
#include <kstaticdeleter.h>
|
||||
@@ -446,12 +449,12 @@
|
||||
*/
|
||||
int PEM_write_bio_X509(BIO *bp, X509 *x);
|
||||
|
||||
-
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10000000L
|
||||
/*
|
||||
* X509_asn1_meth - used for netscape output
|
||||
*/
|
||||
ASN1_METHOD *X509_asn1_meth();
|
||||
-
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* ASN1_i2d_fp - used for netscape output
|
||||
@@ -531,6 +534,9 @@
|
||||
*/
|
||||
void sk_free(STACK *s);
|
||||
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
||||
+ void sk_free(void *s) { return sk_free(reinterpret_cast<STACK*>(s)); }
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* Number of elements in the stack
|
||||
@@ -543,6 +549,9 @@
|
||||
*/
|
||||
char *sk_value(STACK *s, int n);
|
||||
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
||||
+ char *sk_value(void *s, int n) { return sk_value(reinterpret_cast<STACK*>(s), n); }
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* Create a new stack
|
||||
@@ -555,6 +564,9 @@
|
||||
*/
|
||||
int sk_push(STACK *s, char *d);
|
||||
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
||||
+ int sk_push(void *s, void *d) { return sk_push(reinterpret_cast<STACK*>(s), reinterpret_cast<char*>(d)); }
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* Duplicate the stack
|
||||
diff -Naur kdelibs-3.5.10-old/kio/kssl/ksmimecrypto.cc kdelibs-3.5.10-new/kio/kssl/ksmimecrypto.cc
|
||||
--- kdelibs-3.5.10-old/kio/kssl/ksmimecrypto.cc 2005-10-10 08:05:44.000000000 -0700
|
||||
+++ kdelibs-3.5.10-new/kio/kssl/ksmimecrypto.cc 2010-03-31 09:34:38.000000000 -0700
|
||||
@@ -87,7 +87,7 @@
|
||||
|
||||
|
||||
STACK_OF(X509) *KSMIMECryptoPrivate::certsToX509(QPtrList<KSSLCertificate> &certs) {
|
||||
- STACK_OF(X509) *x509 = sk_new(NULL);
|
||||
+ STACK_OF(X509) *x509 = reinterpret_cast<STACK_OF(X509)*>(sk_new(NULL));
|
||||
KSSLCertificate *cert = certs.first();
|
||||
while(cert) {
|
||||
sk_X509_push(x509, cert->getCert());
|
||||
diff -Naur kdelibs-3.5.10-old/kio/kssl/ksslcertificate.cc kdelibs-3.5.10-new/kio/kssl/ksslcertificate.cc
|
||||
--- kdelibs-3.5.10-old/kio/kssl/ksslcertificate.cc 2006-01-19 09:06:12.000000000 -0800
|
||||
+++ kdelibs-3.5.10-new/kio/kssl/ksslcertificate.cc 2010-03-31 09:34:38.000000000 -0700
|
||||
@@ -1003,17 +1003,31 @@
|
||||
QByteArray KSSLCertificate::toNetscape() {
|
||||
QByteArray qba;
|
||||
#ifdef KSSL_HAVE_SSL
|
||||
-ASN1_HEADER ah;
|
||||
-ASN1_OCTET_STRING os;
|
||||
-KTempFile ktf;
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
||||
+ NETSCAPE_X509 nx;
|
||||
+ ASN1_OCTET_STRING hdr;
|
||||
+#else
|
||||
+ ASN1_HEADER ah;
|
||||
+ ASN1_OCTET_STRING os;
|
||||
+#endif
|
||||
+ KTempFile ktf;
|
||||
|
||||
- os.data = (unsigned char *)NETSCAPE_CERT_HDR;
|
||||
- os.length = strlen(NETSCAPE_CERT_HDR);
|
||||
- ah.header = &os;
|
||||
- ah.data = (char *)getCert();
|
||||
- ah.meth = d->kossl->X509_asn1_meth();
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
||||
+ hdr.data = (unsigned char *)NETSCAPE_CERT_HDR;
|
||||
+ hdr.length = strlen(NETSCAPE_CERT_HDR);
|
||||
+ nx.header = &hdr;
|
||||
+ nx.cert = getCert();
|
||||
+
|
||||
+ d->kossl->ASN1_i2d_fp(ktf.fstream(),(unsigned char *)&nx);
|
||||
+#else
|
||||
+ os.data = (unsigned char *)NETSCAPE_CERT_HDR;
|
||||
+ os.length = strlen(NETSCAPE_CERT_HDR);
|
||||
+ ah.header = &os;
|
||||
+ ah.data = (char *)getCert();
|
||||
+ ah.meth = d->kossl->X509_asn1_meth();
|
||||
|
||||
- d->kossl->ASN1_i2d_fp(ktf.fstream(),(unsigned char *)&ah);
|
||||
+ d->kossl->ASN1_i2d_fp(ktf.fstream(),(unsigned char *)&ah);
|
||||
+#endif
|
||||
|
||||
ktf.close();
|
||||
|
46
pkgs/development/compilers/ghc/7.6.2.nix
Normal file
46
pkgs/development/compilers/ghc/7.6.2.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{ stdenv, fetchurl, ghc, perl, gmp, ncurses }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "7.6.2";
|
||||
|
||||
name = "ghc-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://haskell.org/ghc/dist/${version}/${name}-src.tar.bz2";
|
||||
sha256 = "d5f45184abeacf7e9c6b4f63c7101a5c1d7b4fe9007901159e2287ecf38de533";
|
||||
};
|
||||
|
||||
buildInputs = [ ghc perl gmp ncurses ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildMK = ''
|
||||
libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-libraries="${gmp}/lib"
|
||||
libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-gmp-includes="${gmp}/include"
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
echo "${buildMK}" > mk/build.mk
|
||||
sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--with-gcc=${stdenv.gcc}/bin/gcc"
|
||||
];
|
||||
|
||||
# required, because otherwise all symbols from HSffi.o are stripped, and
|
||||
# that in turn causes GHCi to abort
|
||||
stripDebugFlags=["-S" "--keep-file-symbols"];
|
||||
|
||||
meta = {
|
||||
homepage = "http://haskell.org/ghc";
|
||||
description = "The Glasgow Haskell Compiler";
|
||||
maintainers = [
|
||||
stdenv.lib.maintainers.marcweber
|
||||
stdenv.lib.maintainers.andres
|
||||
stdenv.lib.maintainers.simons
|
||||
];
|
||||
platforms = ghc.meta.platforms;
|
||||
};
|
||||
|
||||
}
|
@ -1,12 +1,12 @@
|
||||
{ stdenv, fetchurl, ghc, perl, gmp, ncurses }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "7.7.20121106";
|
||||
version = "7.7.20121213";
|
||||
name = "ghc-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://haskell.org/ghc/dist/current/dist/${name}-src.tar.bz2";
|
||||
sha256 = "1n3xj8arkzfvs3q1ymxsnbzs23ndsp8pl67sqirl837pkgcmq263";
|
||||
sha256 = "0z9ld6271jzv3mx02vqaakirj79pm2vzxnv5a178r6v874qbzx3p";
|
||||
};
|
||||
|
||||
buildInputs = [ ghc perl gmp ncurses ];
|
||||
|
@ -1,12 +1,14 @@
|
||||
{stdenv, fetchurl, unzip}:
|
||||
{ stdenv, fetchurl, unzip }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "gwt-java-2.4.0";
|
||||
src = fetchurl {
|
||||
url=http://google-web-toolkit.googlecode.com/files/gwt-2.4.0.zip;
|
||||
sha1 = "a91ac20db0ddd5994ac3cbfb0e8061d5bbf66f88";
|
||||
|
||||
src = fetchurl {
|
||||
url=http://google-web-toolkit.googlecode.com/files/gwt-2.4.0.zip;
|
||||
sha1 = "a91ac20db0ddd5994ac3cbfb0e8061d5bbf66f88";
|
||||
};
|
||||
buildInputs = [unzip];
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $out
|
||||
@ -18,4 +20,4 @@ stdenv.mkDerivation {
|
||||
homepage = http://code.google.com/webtoolkit/;
|
||||
description = "Google Web Toolkit (GWT) is a development toolkit for building and optimizing complex browser-based applications.";
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -1,31 +0,0 @@
|
||||
source $stdenv/setup
|
||||
|
||||
tar xfvj $src
|
||||
mkdir -p $out
|
||||
cp -av $name $out
|
||||
|
||||
# Create wrapper scripts so that the GWT compiler/host work
|
||||
|
||||
libPath="$libstdcpp5/lib:$glib/lib:$gtk/lib:$atk/lib:$pango/lib:$libX11/lib:$libXt/lib:$out/$name/mozilla-1.7.12"
|
||||
|
||||
mkdir -p $out/bin
|
||||
|
||||
cat > $out/bin/gwt-compile <<EOF
|
||||
#!/bin/sh
|
||||
|
||||
export LD_LIBRARY_PATH=$libPath
|
||||
export LIBXCB_ALLOW_SLOPPY_LOCK=1 # Workaround for bug in Java AWT implementation
|
||||
|
||||
$jdk/bin/java -Xmx256m -cp "\$CLASSPATH:$out/$name/gwt-user.jar:$out/$name/gwt-dev-linux.jar" com.google.gwt.dev.Compiler \$@
|
||||
EOF
|
||||
chmod 755 $out/bin/gwt-compile
|
||||
|
||||
cat > $out/bin/gwt-shell <<EOF
|
||||
#!/bin/sh
|
||||
|
||||
export LD_LIBRARY_PATH=$libPath
|
||||
export LIBXCB_ALLOW_SLOPPY_LOCK=1 # Workaround for bug in Java AWT implementation
|
||||
|
||||
$jdk/bin/java -Xmx256m -cp "\$CLASSPATH:$out/$name/gwt-user.jar:$out/$name/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell \$@
|
||||
EOF
|
||||
chmod 755 $out/bin/gwt-shell
|
@ -1,14 +0,0 @@
|
||||
{stdenv, fetchurl, glib, gtk, pango, atk, libX11, libXt, libstdcpp5, jdk}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "gwt-linux-1.7.1";
|
||||
builder = ./builder.sh;
|
||||
|
||||
src = fetchurl {
|
||||
url = http://google-web-toolkit.googlecode.com/files/gwt-linux-1.7.1.tar.bz2;
|
||||
sha256 = "0lgirr9lr0qsfvw61hqzracdllqklb4qkzbk5x3lc4r64mms5b3g";
|
||||
};
|
||||
|
||||
inherit glib gtk pango atk libX11 libXt libstdcpp5 jdk;
|
||||
buildInputs = [glib gtk pango atk libX11 libXt libstdcpp5];
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, libtool, gcc, patches ? []}:
|
||||
{ stdenv, fetchurl, libtool, gcc, patches ? []}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "opencxx-2.8";
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,31 +0,0 @@
|
||||
{stdenv, fetchurl, pkgconfig, glib, kdelibs, libX11, libXext, zlib, libjpeg
|
||||
, libpng, perl, qt3}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "arts-1.5.10";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://kde/stable/3.5.10/src/arts-1.5.10.tar.bz2;
|
||||
sha256 = "0ffcm24lkgg3sm89q4zsj8za5h5d9j1195pmbjhx4hj0xcwkiqlj";
|
||||
};
|
||||
|
||||
KDEDIR = kdelibs;
|
||||
|
||||
configureFlags = ''
|
||||
--with-extra-includes=${libjpeg}/include
|
||||
--with-extra-libs=${libjpeg}/lib
|
||||
--x-includes=${libX11}/include
|
||||
--x-libraries=${libX11}/lib
|
||||
--disable-dependency-tracking
|
||||
--enable-final
|
||||
'';
|
||||
|
||||
buildNativeInputs = [ pkgconfig perl ];
|
||||
|
||||
buildInputs =
|
||||
[glib kdelibs libX11 libXext zlib libjpeg libpng qt3];
|
||||
|
||||
meta = {
|
||||
homepage = http://www.arts-project.org/;
|
||||
};
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{stdenv, fetchurl, perl, zlib, libjpeg, freetype, libpng, giflib
|
||||
, enableX11 ? true, libX11, xproto, xextproto, libXext, renderproto, libXrender
|
||||
{ stdenv, fetchurl, pkgconfig, perl, zlib, libjpeg, freetype, libpng, giflib
|
||||
, enableX11 ? true, xlibs
|
||||
, enableSDL ? true, SDL }:
|
||||
|
||||
let s = import ./src-for-default.nix; in
|
||||
@ -10,16 +10,14 @@ stdenv.mkDerivation {
|
||||
sha256 = s.hash;
|
||||
};
|
||||
|
||||
patches = [ ./ftbfs.patch ];
|
||||
|
||||
buildNativeInputs = [ perl ];
|
||||
|
||||
buildInputs = [ zlib libjpeg freetype giflib libpng ]
|
||||
buildInputs = [ pkgconfig zlib libjpeg freetype giflib libpng ]
|
||||
++ stdenv.lib.optional enableSDL SDL
|
||||
++ stdenv.lib.optionals enableX11 [
|
||||
xproto libX11 libXext xextproto
|
||||
renderproto libXrender
|
||||
];
|
||||
++ stdenv.lib.optionals enableX11 (with xlibs; [
|
||||
xproto libX11 libXext #xextproto
|
||||
#renderproto libXrender
|
||||
]);
|
||||
|
||||
NIX_LDFLAGS="-lgcc_s";
|
||||
|
||||
@ -31,7 +29,7 @@ stdenv.mkDerivation {
|
||||
"--enable-fbdev"
|
||||
"--enable-mmx"
|
||||
"--enable-sse"
|
||||
"--enable-sysfs"
|
||||
#"--enable-sysfs" # not recognized
|
||||
"--with-software"
|
||||
"--with-smooth-scaling"
|
||||
] ++ stdenv.lib.optionals enableX11 [
|
||||
|
@ -1,25 +0,0 @@
|
||||
From: André Draszik <andre.draszik@st.com>
|
||||
Date: Wed, 28 Sep 2011 17:36:00 +0000 (+0100)
|
||||
Subject: generic_stretch_blit: fix compilation due to undefined reference to DSPF_ARGBF88871
|
||||
X-Git-Url: http://git.directfb.org/?p=core%2FDirectFB.git;a=commitdiff_plain;h=ef5e1398fe4037b63d6513e450f107fcfe91047f
|
||||
|
||||
generic_stretch_blit: fix compilation due to undefined reference to DSPF_ARGBF88871
|
||||
|
||||
../../../../DirectFB/src/gfx/generic/generic_stretch_blit.c: In function 'stretch_hvx':
|
||||
../../../../DirectFB/src/gfx/generic/generic_stretch_blit.c:444:21: error: 'DSPF_ARGBF88871' undeclared (first use in this function)
|
||||
../../../../DirectFB/src/gfx/generic/generic_stretch_blit.c:444:21: note: each undeclared identifier is reported only once for each function it appears in
|
||||
---
|
||||
|
||||
diff --git a/src/gfx/generic/generic_stretch_blit.c b/src/gfx/generic/generic_stretch_blit.c
|
||||
index 65076f4..6dd987b 100644
|
||||
--- a/src/gfx/generic/generic_stretch_blit.c
|
||||
+++ b/src/gfx/generic/generic_stretch_blit.c
|
||||
@@ -441,7 +441,7 @@ stretch_hvx( CardState *state, DFBRectangle *srect, DFBRectangle *drect )
|
||||
}
|
||||
break;
|
||||
|
||||
- case DSPF_ARGBF88871:
|
||||
+ case DSPF_RGBAF88871:
|
||||
if (state->blittingflags & DSBLIT_SRC_PREMULTIPLY) {
|
||||
for (i=0; i<gfxs->Blut->num_entries; i++) {
|
||||
int alpha = entries[i].a + 1;
|
@ -7,6 +7,7 @@
|
||||
, x264Support ? true, x264 ? null
|
||||
, xvidSupport ? true, xvidcore ? null
|
||||
, vdpauSupport ? true, libvdpau ? null
|
||||
, vaapiSupport ? true, libva ? null
|
||||
, faacSupport ? false, faac ? null
|
||||
, dc1394Support ? false, libdc1394 ? null
|
||||
, x11grabSupport ? false, libXext ? null, libXfixes ? null
|
||||
@ -19,6 +20,7 @@ assert vpxSupport -> libvpx != null;
|
||||
assert x264Support -> x264 != null;
|
||||
assert xvidSupport -> xvidcore != null;
|
||||
assert vdpauSupport -> libvdpau != null;
|
||||
assert vaapiSupport -> libva != null;
|
||||
assert faacSupport -> faac != null;
|
||||
assert x11grabSupport -> libXext != null && libXfixes != null;
|
||||
|
||||
@ -39,6 +41,7 @@ stdenv.mkDerivation rec {
|
||||
"--enable-swscale"
|
||||
"--disable-ffplay"
|
||||
"--enable-shared"
|
||||
"--enable-avresample"
|
||||
"--enable-runtime-cpudetect"
|
||||
]
|
||||
++ stdenv.lib.optional mp3Support "--enable-libmp3lame"
|
||||
@ -62,6 +65,7 @@ stdenv.mkDerivation rec {
|
||||
++ stdenv.lib.optional x264Support x264
|
||||
++ stdenv.lib.optional xvidSupport xvidcore
|
||||
++ stdenv.lib.optional vdpauSupport libvdpau
|
||||
++ stdenv.lib.optional vaapiSupport libva
|
||||
++ stdenv.lib.optional faacSupport faac
|
||||
++ stdenv.lib.optional dc1394Support libdc1394
|
||||
++ stdenv.lib.optionals x11grabSupport [ libXext libXfixes ];
|
||||
|
@ -2,12 +2,13 @@
|
||||
, fetchurl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "gnu-efi-3.0r";
|
||||
let version = "3.0s"; in stdenv.mkDerivation {
|
||||
|
||||
name = "gnu-efi-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/gnu-efi/gnu-efi_3.0r.orig.tar.gz";
|
||||
sha256 = "1zi298wsg8v29xj4azcawqfjbxqi2w7l60agf7x2ph2lnqlga2v5";
|
||||
url = "mirror://sourceforge/gnu-efi/gnu-efi_${version}.orig.tar.gz";
|
||||
sha256 = "18bpswzkj81dadq1b7n2s9g0cz60l34ggzxlq21mb8va10j9zmhh";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "HTTP";
|
||||
version = "4000.2.6";
|
||||
sha256 = "0rycwrn9cq9mrsgxkbx373zjvmzg4hd8hzclya6ipd3jda1w5r92";
|
||||
version = "4000.2.7";
|
||||
sha256 = "0a5zjhrbdp8hwmkc709i2qwnxx4lafrp6wssdms6g5l97a52bdc2";
|
||||
buildDepends = [ mtl network parsec ];
|
||||
meta = {
|
||||
homepage = "https://github.com/haskell/HTTP";
|
@ -2,12 +2,12 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "attoparsec";
|
||||
version = "0.10.3.0";
|
||||
sha256 = "1l4cnfgnynrprfvx0p3n6kca8arsmvb1yxb9ir782rrk537jci50";
|
||||
version = "0.10.4.0";
|
||||
sha256 = "0inkcrl40j9kgcmmi0xkcszayqjd5yn7i9fyvv0ywfqwpl6lxf5n";
|
||||
buildDepends = [ deepseq text ];
|
||||
meta = {
|
||||
homepage = "https://github.com/bos/attoparsec";
|
||||
description = "Fast combinator parsing for bytestrings";
|
||||
description = "Fast combinator parsing for bytestrings and text";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "authenticate";
|
||||
version = "1.3.2";
|
||||
sha256 = "1bvgfri0c2nyz06r59rm3slpvm1b0s242s4mznmndpdclgg33d9m";
|
||||
version = "1.3.2.1";
|
||||
sha256 = "1r53mnj4b4x0prcqqf6y3gdia2j1l3155iw79jzlx0cnxbdsfnc7";
|
||||
buildDepends = [
|
||||
aeson attoparsec blazeBuilder blazeBuilderConduit caseInsensitive
|
||||
conduit httpConduit httpTypes monadControl network resourcet
|
||||
|
@ -1,10 +1,10 @@
|
||||
{ cabal, semigroupoids, semigroups }:
|
||||
{ cabal, semigroupoids, semigroups, tagged }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "bifunctors";
|
||||
version = "3.0.3";
|
||||
sha256 = "1nmrwc9n9qkj9w9c38ja0had32isr6v35j1v19fhqdwk5ddbpxp4";
|
||||
buildDepends = [ semigroupoids semigroups ];
|
||||
version = "3.2";
|
||||
sha256 = "03bszf1127iw5kimjbag5gmgzz7h2qzcd9f7jb53jpiadfhjfx0a";
|
||||
buildDepends = [ semigroupoids semigroups tagged ];
|
||||
meta = {
|
||||
homepage = "http://github.com/ekmett/bifunctors/";
|
||||
description = "Haskell 98 bifunctors";
|
||||
|
@ -1,10 +1,10 @@
|
||||
{ cabal, hashable, text }:
|
||||
{ cabal, deepseq, hashable, text }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "case-insensitive";
|
||||
version = "0.4.0.4";
|
||||
sha256 = "1xzpri688vbd6fvvxczqx8bv53009ygzws7vbjmj2q97wcm8nmwd";
|
||||
buildDepends = [ hashable text ];
|
||||
version = "1.0";
|
||||
sha256 = "1x437b5yyh930a5dr642lvfdgpx12w4ms70whiw1ffjjhssb88zk";
|
||||
buildDepends = [ deepseq hashable text ];
|
||||
meta = {
|
||||
homepage = "https://github.com/basvandijk/case-insensitive";
|
||||
description = "Case insensitive string comparison";
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "classy-prelude-conduit";
|
||||
version = "0.4.3";
|
||||
sha256 = "0ny4si6z6i6g6khcg9d3m9wks42sqh8i8kpgghhdwd37v32l3f34";
|
||||
version = "0.4.4";
|
||||
sha256 = "1xsqdifqm68mlrmpmj04nqd5r83psq5ffis2pm8k8vwl1n1jv8kn";
|
||||
buildDepends = [
|
||||
classyPrelude conduit monadControl resourcet transformers void
|
||||
xmlConduit
|
||||
|
@ -1,13 +1,13 @@
|
||||
{ cabal, basicPrelude, hashable, systemFilepath, text, transformers
|
||||
, unorderedContainers, vector
|
||||
{ cabal, basicPrelude, hashable, liftedBase, systemFilepath, text
|
||||
, transformers, unorderedContainers, vector
|
||||
}:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "classy-prelude";
|
||||
version = "0.4.3";
|
||||
sha256 = "1k2iszja03s8azypl8lpkdjvvqsgzg73cl1wp4jl2fqp1psqv36q";
|
||||
version = "0.4.4";
|
||||
sha256 = "0f49b07r5isz57wjmgpfvq4hg9m5q59ad918rk1v24xdvn4y3all";
|
||||
buildDepends = [
|
||||
basicPrelude hashable systemFilepath text transformers
|
||||
basicPrelude hashable liftedBase systemFilepath text transformers
|
||||
unorderedContainers vector
|
||||
];
|
||||
meta = {
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "diagrams-contrib";
|
||||
version = "0.6.0.2";
|
||||
sha256 = "1lj99a46r12zjwmpkn7vj04wapfgdlmw05jwb5lnhy9hxqgcsgng";
|
||||
version = "0.6.0.3";
|
||||
sha256 = "0j0wmf2nksqh3rqmzyw468bp25zikc5icif5f3rfi1v06ghsk0i5";
|
||||
buildDepends = [
|
||||
colour dataDefault diagramsLib forceLayout lens mtl vectorSpace
|
||||
];
|
||||
|
@ -5,6 +5,7 @@ cabal.mkDerivation (self: {
|
||||
version = "0.6.0.0";
|
||||
sha256 = "17qndqsk09fvnvyhhw3xbbjjhfyyp4sivc898vqllyyky0wqmrdk";
|
||||
buildDepends = [ digestiveFunctors heist mtl text xmlhtml ];
|
||||
jailbreak = true;
|
||||
meta = {
|
||||
homepage = "http://github.com/jaspervdj/digestive-functors";
|
||||
description = "Heist frontend for the digestive-functors library";
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "distributed-process-simplelocalnet";
|
||||
version = "0.2.0.8";
|
||||
sha256 = "01kzqfbrkl9zzknw0gbdh1c1lss911lphagn2sw6nzl9xpnhjqk0";
|
||||
version = "0.2.0.9";
|
||||
sha256 = "0bkb26bfpmyhh26hgznnw073kvk78ws6lqi86pxrgnnm9sx5mi21";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "distributed-process";
|
||||
version = "0.4.1";
|
||||
sha256 = "1ysm2rq7ldxb5w6m04vf5q3zrgvg99z7kszjqj17r17ps61v898f";
|
||||
version = "0.4.2";
|
||||
sha256 = "16w8jp66903vn089ysqdn534v0744cr2m6wkqd77zri6a0caaa6c";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "edit-distance";
|
||||
version = "0.2.1.1";
|
||||
sha256 = "1d8h38cn3azvsp2dp5gycglm5bwwd8plbag8ypi38yj6c35a82yn";
|
||||
version = "0.2.1.2";
|
||||
sha256 = "08dxsp1ar8mr4xrjy37lzl0s1rjnqsdq30p09nclip5pyhcw7g44";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [ random ];
|
||||
|
@ -1,13 +1,16 @@
|
||||
{ cabal, semigroupoids, semigroups, transformers }:
|
||||
{ cabal, MonadRandom, mtl, semigroupoids, semigroups, transformers
|
||||
}:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "either";
|
||||
version = "3.0.3";
|
||||
sha256 = "02kpb8xd19n00ll61haqr6k3hy8qmbdf73gr4zs59q9xh0739qxc";
|
||||
buildDepends = [ semigroupoids semigroups transformers ];
|
||||
version = "3.1";
|
||||
sha256 = "1paglfhd2xjr32sh5npl3kvamv4nps9fpy0wk9ya0l26w4c3bdsm";
|
||||
buildDepends = [
|
||||
MonadRandom mtl semigroupoids semigroups transformers
|
||||
];
|
||||
meta = {
|
||||
homepage = "http://github.com/ekmett/either/";
|
||||
description = "Haskell 98 either monad transformer";
|
||||
description = "An either monad transformer";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
};
|
||||
|
14
pkgs/development/libraries/haskell/ghc-heap-view/default.nix
Normal file
14
pkgs/development/libraries/haskell/ghc-heap-view/default.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{ cabal, transformers }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "ghc-heap-view";
|
||||
version = "0.4.1.0";
|
||||
sha256 = "1icq5620j37n85d08yfpln75f9944flbqyqhjqsf0qr72zsm3w11";
|
||||
buildDepends = [ transformers ];
|
||||
meta = {
|
||||
description = "Extract the heap representation of Haskell values and thunks";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
||||
};
|
||||
})
|
20
pkgs/development/libraries/haskell/ghc-vis/default.nix
Normal file
20
pkgs/development/libraries/haskell/ghc-vis/default.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{ cabal, cairo, deepseq, fgl, ghcHeapView, graphviz, gtk, mtl
|
||||
, svgcairo, text, transformers, xdot
|
||||
}:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "ghc-vis";
|
||||
version = "0.6";
|
||||
sha256 = "0gvfs0f6fjg4bzq9q6rrhin6gk1pbyw9qbigi90cz1fg10nq7nzi";
|
||||
buildDepends = [
|
||||
cairo deepseq fgl ghcHeapView graphviz gtk mtl svgcairo text
|
||||
transformers xdot
|
||||
];
|
||||
meta = {
|
||||
homepage = "http://felsin9.de/nnis/ghc-vis";
|
||||
description = "Live visualization of data structures in GHCi";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
||||
};
|
||||
})
|
@ -6,8 +6,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "hakyll";
|
||||
version = "4.1.2.1";
|
||||
sha256 = "1d9bbqy1dix60w72zc3g4y7454avngfyl2i8gj99bdqin2wwcgp8";
|
||||
version = "4.1.4.0";
|
||||
sha256 = "0nhr7ai03hx2qjxlqml0js43iwxhcbpdqkwdvw8pqs396yrjwxdj";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
@ -15,6 +15,7 @@ cabal.mkDerivation (self: {
|
||||
filepath httpConduit httpTypes lrucache mtl pandoc parsec random
|
||||
regexBase regexTdfa snapCore snapServer tagsoup text time
|
||||
];
|
||||
jailbreak = true;
|
||||
meta = {
|
||||
homepage = "http://jaspervdj.be/hakyll";
|
||||
description = "A static website compiler library";
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "hamlet";
|
||||
version = "1.1.3.1";
|
||||
sha256 = "04qqsjrn0fh9y4z7gjf3g60w69gqxhzq7dqkraq97p3w45fijm1i";
|
||||
version = "1.1.5";
|
||||
sha256 = "18rv53bqf07w0y1qs96v3krimvjx5salq9mn168l01vl98blwhvv";
|
||||
buildDepends = [
|
||||
blazeBuilder blazeHtml blazeMarkup failure parsec shakespeare text
|
||||
];
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "heist";
|
||||
version = "0.10.2.1";
|
||||
sha256 = "14lp27vlzv6qqv325x2vqqvphw5ads5ywjqpjramv3hhd275fn3d";
|
||||
version = "0.11.0";
|
||||
sha256 = "1zbwbgabdj6x0vi7l8wfq7rx77p8b4zxz5wv43nr67irszyz1k7w";
|
||||
buildDepends = [
|
||||
aeson attoparsec blazeBuilder blazeHtml directoryTree dlist errors
|
||||
filepath hashable MonadCatchIOTransformers mtl random text time
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "hoogle";
|
||||
version = "4.2.14";
|
||||
sha256 = "1ymmf8zxp2nbygnavhr3ay0fidhd3vhrdqb7mg0qgk8y9kx25brj";
|
||||
version = "4.2.15";
|
||||
sha256 = "0mhxdbbzq7hl5zxz3dhxyrs5q08y8hxwsm19ba0gx47qvg3znzki";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "hsemail";
|
||||
version = "1.7.4";
|
||||
sha256 = "0nigv0zbkm90m5jskfc5a4zx2d3gyqj1y472jplrgd76s15alsmw";
|
||||
version = "1.7.5";
|
||||
sha256 = "0ls6y48bndwgb7ng29wxim4h36rs6b07dqi6ic4hqgbb7lg6fma4";
|
||||
buildDepends = [ mtl parsec ];
|
||||
meta = {
|
||||
homepage = "http://gitorious.org/hsemail";
|
||||
|
@ -4,15 +4,14 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "hspec";
|
||||
version = "1.4.3";
|
||||
sha256 = "0i963fxamyyi3afac67rkw4340i3xqs1q3lvcy69mq0czbdvgjmc";
|
||||
version = "1.4.4";
|
||||
sha256 = "09wrvdlqzpa3vjcnirnzpj8nsvqnn5xbilnxaqmjm2agbl8xfj5r";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
ansiTerminal filepath hspecExpectations HUnit QuickCheck setenv
|
||||
silently time transformers
|
||||
];
|
||||
jailbreak = true;
|
||||
meta = {
|
||||
homepage = "http://hspec.github.com/";
|
||||
description = "Behavior-Driven Development for Haskell";
|
||||
|
@ -9,8 +9,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "http-conduit";
|
||||
version = "1.8.7";
|
||||
sha256 = "12v5rxp4dx6glyijygpp7r7b5b6mscclgfp2cbii78m3hgld097i";
|
||||
version = "1.8.7.1";
|
||||
sha256 = "1m0f9snc2zxj8hvxw3ngw0h78ckvdlxxfjvrryk93blfwbamssi5";
|
||||
buildDepends = [
|
||||
asn1Data attoparsec attoparsecConduit base64Bytestring blazeBuilder
|
||||
blazeBuilderConduit caseInsensitive certificate conduit cookie
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "http-types";
|
||||
version = "0.7.3.0.1";
|
||||
sha256 = "1s2dh75jpf2yllw503hjw0x2anhc4c71vz5yylri8nxzx1zs18rq";
|
||||
version = "0.8.0";
|
||||
sha256 = "14d1gzgwhinkwx3lmc6hvqj6ivjrvy4m6fm2walnyk1zv24zli75";
|
||||
buildDepends = [ blazeBuilder caseInsensitive text ];
|
||||
meta = {
|
||||
homepage = "https://github.com/aristidb/http-types";
|
||||
|
@ -1,10 +1,10 @@
|
||||
{ cabal, haskellSrcExts, regexPosix }:
|
||||
{ cabal, regexPosix }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "language-haskell-extract";
|
||||
version = "0.2.3";
|
||||
sha256 = "0fz1nin596ihlh77pafzpdf46br1k3pxcxyml2rvly6g0h3yjgpr";
|
||||
buildDepends = [ haskellSrcExts regexPosix ];
|
||||
version = "0.2.4";
|
||||
sha256 = "1nxcs7g8a1sp91bzpy4cj6s31k5pvc3gvig04cbrggv5cvjidnhl";
|
||||
buildDepends = [ regexPosix ];
|
||||
meta = {
|
||||
homepage = "http://github.com/finnsson/template-helper";
|
||||
description = "Module to automatically extract functions from the local code";
|
||||
|
@ -8,8 +8,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "lens";
|
||||
version = "3.8.2";
|
||||
sha256 = "1spz4nyv1f7kf4bnw8qgqaks5kc4m0slzw0czj1wh1232w2sz15m";
|
||||
version = "3.8.5";
|
||||
sha256 = "09z2izh7mqj75yh9f0pb8ky9vnzs9zx2z2mz1ik7l8wid43gm6vn";
|
||||
buildDepends = [
|
||||
bifunctors comonad comonadsFd comonadTransformers contravariant
|
||||
distributive filepath genericDeriving hashable
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "mime-types";
|
||||
version = "0.1.0.2";
|
||||
sha256 = "1pkhr8k23386qwa1wmlrcilz75di2l8n5kc4n8pnia05p49akfcs";
|
||||
version = "0.1.0.3";
|
||||
sha256 = "0mzhkqcjlnrs9mwn2crsr1m2mf6pgygs1s3ks8akz1618v6jm6y1";
|
||||
buildDepends = [ text ];
|
||||
meta = {
|
||||
homepage = "https://github.com/yesodweb/wai";
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "pandoc";
|
||||
version = "1.10.0.5";
|
||||
sha256 = "05mjgvxk3wxfssf4aviigdm6jb73a6bp8lwz86aabdgkgh2i6n54";
|
||||
version = "1.10.1";
|
||||
sha256 = "127pxs1w99nr6hdancaajm20w3vgmch4xlj0v7221y7i9qcr1y1y";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "postgresql-libpq";
|
||||
version = "0.8.2.1";
|
||||
sha256 = "0fjy451gc9lg3kcglq4s5s3hja8ni3adh4jmxd01kfyvyhwggv4d";
|
||||
version = "0.8.2.2";
|
||||
sha256 = "1mmsfgia318p34l8jx8hihb160sx2wpg2h5r741akcs50v6p5878";
|
||||
extraLibraries = [ postgresql ];
|
||||
meta = {
|
||||
homepage = "http://github.com/lpsmith/postgresql-libpq";
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "shakespeare-js";
|
||||
version = "1.1.1";
|
||||
sha256 = "1xzhb3ipax2489311hmiaxp9i44099bsbclcj3ds0rhdfa62xarg";
|
||||
version = "1.1.2";
|
||||
sha256 = "0iwajn0d0yngzp10j9qbb2gpq1g7r390yqd7pj5dri35rjc6mr8n";
|
||||
buildDepends = [ aeson shakespeare text ];
|
||||
meta = {
|
||||
homepage = "http://www.yesodweb.com/book/shakespearean-templates";
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "shakespeare";
|
||||
version = "1.0.2";
|
||||
sha256 = "1n7qymrn2f83a11zdh2950pf8rsqnc52blwi02amjxsvy2piidzm";
|
||||
version = "1.0.3";
|
||||
sha256 = "0js56njy5rbviavga5qlp8d989wdpqf7lcyhwrjf1clf3k4f8anl";
|
||||
buildDepends = [ parsec text ];
|
||||
meta = {
|
||||
homepage = "http://www.yesodweb.com/book/shakespearean-templates";
|
||||
|
@ -15,6 +15,7 @@ cabal.mkDerivation (self: {
|
||||
MonadCatchIOTransformers mtl random regexPosix text time unixCompat
|
||||
unorderedContainers vector zlibEnum
|
||||
];
|
||||
jailbreak = true;
|
||||
meta = {
|
||||
homepage = "http://snapframework.com/";
|
||||
description = "Snap: A Haskell Web Framework (core interfaces and types)";
|
||||
|
@ -13,6 +13,7 @@ cabal.mkDerivation (self: {
|
||||
caseInsensitive enumerator MonadCatchIOTransformers mtl network
|
||||
snapCore text time unixCompat
|
||||
];
|
||||
jailbreak = true;
|
||||
meta = {
|
||||
homepage = "http://snapframework.com/";
|
||||
description = "A fast, iteratee-based, epoll-enabled web server for the Snap Framework";
|
||||
|
@ -1,22 +1,22 @@
|
||||
{ cabal, aeson, attoparsec, cereal, clientsession, comonad
|
||||
, configurator, directoryTree, dlist, errors, filepath, hashable
|
||||
, heist, lens, logict, MonadCatchIOTransformers, mtl, mwcRandom
|
||||
, pwstoreFast, regexPosix, snapCore, snapServer, stm, syb, text
|
||||
, time, transformers, unorderedContainers, vector, vectorAlgorithms
|
||||
, xmlhtml
|
||||
, configurator, directoryTree, dlist, either, errors, filepath
|
||||
, hashable, heist, lens, logict, MonadCatchIOTransformers, mtl
|
||||
, mwcRandom, pwstoreFast, regexPosix, snapCore, snapServer, stm
|
||||
, syb, text, time, transformers, unorderedContainers, vector
|
||||
, vectorAlgorithms, xmlhtml
|
||||
}:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "snap";
|
||||
version = "0.10.0.1";
|
||||
sha256 = "14j9lgcdyxh7n4yidfvn1r94nziljiqz6nsqgq114v34bnn6l2yn";
|
||||
version = "0.11.0";
|
||||
sha256 = "0mw1fxjijd3z9bz1znrc5vfxa4mc1by481gxfmk2hdlcsib9sp7n";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
aeson attoparsec cereal clientsession comonad configurator
|
||||
directoryTree dlist errors filepath hashable heist lens logict
|
||||
MonadCatchIOTransformers mtl mwcRandom pwstoreFast regexPosix
|
||||
snapCore snapServer stm syb text time transformers
|
||||
directoryTree dlist either errors filepath hashable heist lens
|
||||
logict MonadCatchIOTransformers mtl mwcRandom pwstoreFast
|
||||
regexPosix snapCore snapServer stm syb text time transformers
|
||||
unorderedContainers vector vectorAlgorithms xmlhtml
|
||||
];
|
||||
jailbreak = true;
|
||||
|
13
pkgs/development/libraries/haskell/split/0.2.1.2.nix
Normal file
13
pkgs/development/libraries/haskell/split/0.2.1.2.nix
Normal file
@ -0,0 +1,13 @@
|
||||
{ cabal }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "split";
|
||||
version = "0.2.1.2";
|
||||
sha256 = "0wjw4j9wgk66h7filzfh0py9b0wwmaynvwqvd6kinxgms86fpvyi";
|
||||
meta = {
|
||||
description = "Combinator library for splitting lists";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
||||
};
|
||||
})
|
12
pkgs/development/libraries/haskell/string-qq/default.nix
Normal file
12
pkgs/development/libraries/haskell/string-qq/default.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{ cabal }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "string-qq";
|
||||
version = "0.0.2";
|
||||
sha256 = "0662m3i5xrdrr95w829bszkhp88mj9iy1zya54vk2sl5hz9wlmwp";
|
||||
meta = {
|
||||
description = "QuasiQuoter for non-interpolated strings, texts and bytestrings";
|
||||
license = self.stdenv.lib.licenses.publicDomain;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
};
|
||||
})
|
@ -2,8 +2,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "texmath";
|
||||
version = "0.6.1.2";
|
||||
sha256 = "1izsjy30saz2il16dwx8sh2s30b1pfgcpq6023v135w1bdrzrnmq";
|
||||
version = "0.6.1.3";
|
||||
sha256 = "1f2hka9jwlrm9dvw7z3896yfpdzxs2vaw0vbcmj5p401mvzc8w05";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [ parsec syb xml ];
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "tls";
|
||||
version = "1.1.1";
|
||||
sha256 = "0ji83b5z3v6f6a6rgyj5xkjh9vvsqckr7ymzjnhb4zqf0mgymypq";
|
||||
version = "1.1.2";
|
||||
sha256 = "1vg1mnz6cxxgs48pbpjp4hwyvsysxyzvjfy4p1vd23lwc32cdjqg";
|
||||
buildDepends = [
|
||||
cereal certificate cryptohash cryptoPubkey cryptoRandomApi mtl
|
||||
network
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "wai-extra";
|
||||
version = "1.3.2";
|
||||
sha256 = "1089sfb4jyi17rw6nivpy96gbc90nyawr35jzwlzl41gzxxmv503";
|
||||
version = "1.3.2.1";
|
||||
sha256 = "13w3nhz59h4j25fsy95221y71k300plhs4vjqz2wxaigpv9sc2y7";
|
||||
buildDepends = [
|
||||
ansiTerminal blazeBuilder blazeBuilderConduit caseInsensitive
|
||||
conduit dataDefault dateCache fastLogger httpTypes network
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "wai-test";
|
||||
version = "1.3.0";
|
||||
sha256 = "15y0aw5c4sh1mns4ss39l0wsxrd1b6yq6m5r638x23zl6y7d9j40";
|
||||
version = "1.3.0.1";
|
||||
sha256 = "0yy0bvkrny4kj77wvn0cflwha6yijfxvnj530ps7xnzv1qm8qn1l";
|
||||
buildDepends = [
|
||||
blazeBuilder blazeBuilderConduit caseInsensitive conduit cookie
|
||||
httpTypes HUnit text transformers wai
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "wai";
|
||||
version = "1.3.0.1";
|
||||
sha256 = "0z6byx71awhjb7fycz1ixsyzzlsrv1i69qwjrfzh9y5wnbchj9yl";
|
||||
version = "1.3.0.2";
|
||||
sha256 = "1ijxdnl76kkm2qck5qiwdwqvwkbpw8zbilfaz67sfbz3ccwls2fc";
|
||||
buildDepends = [
|
||||
blazeBuilder conduit httpTypes network text transformers vault
|
||||
];
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "warp";
|
||||
version = "1.3.7.1";
|
||||
sha256 = "0kabcxzjc686iayhxln2cmnxm3vk3h0685n4d4ybprv5h1nc6ghl";
|
||||
version = "1.3.7.2";
|
||||
sha256 = "06cwc0lmzgna939svdw7v5s822safkfy3wd4n21f9ml20iskzqm6";
|
||||
buildDepends = [
|
||||
blazeBuilder blazeBuilderConduit caseInsensitive conduit hashable
|
||||
httpTypes liftedBase network networkConduit simpleSendfile
|
||||
|
14
pkgs/development/libraries/haskell/xdot/default.nix
Normal file
14
pkgs/development/libraries/haskell/xdot/default.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{ cabal, cairo, graphviz, gtk, mtl, polyparse, text }:
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "xdot";
|
||||
version = "0.2.2";
|
||||
sha256 = "1n7lwshfn5rzbk4fxlkn02fxki2xh5m0304hnb1d5mchxyzhfdan";
|
||||
buildDepends = [ cairo graphviz gtk mtl polyparse text ];
|
||||
meta = {
|
||||
description = "Parse Graphviz xdot files and interactively view them using GTK and Cairo";
|
||||
license = self.stdenv.lib.licenses.bsd3;
|
||||
platforms = self.ghc.meta.platforms;
|
||||
maintainers = [ self.stdenv.lib.maintainers.andres ];
|
||||
};
|
||||
})
|
@ -1,5 +1,5 @@
|
||||
{ cabal, aeson, authenticate, blazeHtml, blazeMarkup, hamlet
|
||||
, httpConduit, liftedBase, mimeMail, network, persistent
|
||||
, httpConduit, httpTypes, liftedBase, mimeMail, network, persistent
|
||||
, persistentTemplate, pureMD5, pwstoreFast, random, SHA
|
||||
, shakespeareCss, shakespeareJs, text, transformers
|
||||
, unorderedContainers, wai, yesodCore, yesodForm, yesodJson
|
||||
@ -8,12 +8,12 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "yesod-auth";
|
||||
version = "1.1.3";
|
||||
sha256 = "0rlp56jsb0cwm1z303b7l9iy5hbip18vlm7fisna4agbf4rj2k0z";
|
||||
version = "1.1.4";
|
||||
sha256 = "060548zbjsvf6zvixiyic729fd9862z3qwz349ric60jfa20cdpx";
|
||||
buildDepends = [
|
||||
aeson authenticate blazeHtml blazeMarkup hamlet httpConduit
|
||||
liftedBase mimeMail network persistent persistentTemplate pureMD5
|
||||
pwstoreFast random SHA shakespeareCss shakespeareJs text
|
||||
httpTypes liftedBase mimeMail network persistent persistentTemplate
|
||||
pureMD5 pwstoreFast random SHA shakespeareCss shakespeareJs text
|
||||
transformers unorderedContainers wai yesodCore yesodForm yesodJson
|
||||
yesodPersistent
|
||||
];
|
||||
|
@ -9,8 +9,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "yesod-core";
|
||||
version = "1.1.7.1";
|
||||
sha256 = "07rh6yy8hz660hxz60gvminm166cb5was8qb1l24lrmzchigbf3r";
|
||||
version = "1.1.8";
|
||||
sha256 = "03yk9ypd314830bk3jjwkzi87bn04lqkh6hq91izn1prvijjiqjm";
|
||||
buildDepends = [
|
||||
aeson blazeBuilder blazeHtml blazeMarkup caseInsensitive cereal
|
||||
clientsession conduit cookie failure fastLogger hamlet httpTypes
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "yesod-form";
|
||||
version = "1.2.0.2";
|
||||
sha256 = "0a3172rgvma420l98hkgvl17ks2a2jkys3rh4qd2bbm9p7qknv3y";
|
||||
version = "1.2.1";
|
||||
sha256 = "10xjpky7dglqbhc6i49q9ckkhq23wyyqd7karlp0byhprmspnifq";
|
||||
buildDepends = [
|
||||
aeson attoparsec blazeBuilder blazeHtml blazeMarkup cryptoApi
|
||||
dataDefault emailValidate hamlet network persistent shakespeareCss
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "yesod-routes";
|
||||
version = "1.1.1.1";
|
||||
sha256 = "10cy50dnhbhwi0yspq0x06gzqpmhkalqq1sww2wjpv13hp53pq3m";
|
||||
version = "1.1.2";
|
||||
sha256 = "17yv2z7k1s958xyn552wpk0cwpivsnkvia8477yhgbp4n2d1i5jv";
|
||||
buildDepends = [ pathPieces text vector ];
|
||||
meta = {
|
||||
homepage = "http://www.yesodweb.com/";
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "yesod-static";
|
||||
version = "1.1.1.2";
|
||||
sha256 = "0x3vrzqqddi4fmbivmy5pi66jmnc5fh68j5fjfxn5nyhp4n6z0sw";
|
||||
version = "1.1.2";
|
||||
sha256 = "0rh5vdpiq1ryw7isyaqqw3sif833k8j32m47lvr0dj46lj2jz0a0";
|
||||
buildDepends = [
|
||||
base64Bytestring cereal conduit cryptoConduit cryptohash fileEmbed
|
||||
httpTypes systemFilepath text transformers unixCompat wai
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "yesod-test";
|
||||
version = "0.3.3";
|
||||
sha256 = "1jb410r905wd26swh2rk59nbyy389gcfz261adhb69awmsyql5x3";
|
||||
version = "0.3.3.1";
|
||||
sha256 = "052dc68r2k56jzl9yh72kwcgdp35rm9w9vyj6xprqk506i43x7m1";
|
||||
buildDepends = [
|
||||
attoparsec blazeBuilder blazeHtml blazeMarkup caseInsensitive
|
||||
cookie hspec htmlConduit httpTypes HUnit monadControl network
|
||||
|
@ -12,8 +12,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "yesod";
|
||||
version = "1.1.7.2";
|
||||
sha256 = "0mxxzcmp63sdn7g30ilp40dsj2iccajc9gpxycnqxqabdzhqkbm0";
|
||||
version = "1.1.8";
|
||||
sha256 = "0ygcsrq8nf1jvksig72r3i13qz1d3hgh5476fy6l4wl33idk6jb1";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
|
@ -1,17 +1,20 @@
|
||||
{stdenv, fetchurl, pkgconfig, glib }:
|
||||
{stdenv, fetchurl, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "liboil-0.3.15";
|
||||
name = "liboil-0.3.17";
|
||||
|
||||
src = fetchurl {
|
||||
url = "${meta.homepage}/download/${name}.tar.gz";
|
||||
sha256 = "1m3zcl54sf21cf2ckzny16ihymz8whi60ymyrhmd3m1dlw1knpmf";
|
||||
sha256 = "0sgwic99hxlb1av8cm0albzh8myb7r3lpcwxfm606l0bkc3h4pqh";
|
||||
};
|
||||
|
||||
buildInputs = [pkgconfig glib];
|
||||
buildInputs = [ pkgconfig ];
|
||||
|
||||
patches = [ ./x86_64-cpuid.patch ];
|
||||
|
||||
meta = {
|
||||
homepage = http://liboil.freedesktop.org;
|
||||
description = "A library of simple functions that are optimized for various CPUs";
|
||||
license = "BSD-2";
|
||||
};
|
||||
}
|
||||
|
38
pkgs/development/libraries/liboil/x86_64-cpuid.patch
Normal file
38
pkgs/development/libraries/liboil/x86_64-cpuid.patch
Normal file
@ -0,0 +1,38 @@
|
||||
From 705916007fba0a845229a02dc6474cb523eff150 Mon Sep 17 00:00:00 2001
|
||||
From: David Schleef <ds@schleef.org>
|
||||
Date: Tue, 20 Jul 2010 21:05:26 +0000
|
||||
Subject: x86: Fix cpuid function on x86-64
|
||||
|
||||
Fixes: #28956.
|
||||
---
|
||||
diff --git a/liboil/liboilcpu-x86.c b/liboil/liboilcpu-x86.c
|
||||
index e7a1978..ef4d3f2 100644
|
||||
--- a/liboil/liboilcpu-x86.c
|
||||
+++ b/liboil/liboilcpu-x86.c
|
||||
@@ -162,13 +162,10 @@ get_cpuid (uint32_t op, uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d)
|
||||
static void
|
||||
get_cpuid (uint32_t op, uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d)
|
||||
{
|
||||
+ *a = op;
|
||||
__asm__ (
|
||||
- " pushq %%rbx\n"
|
||||
" cpuid\n"
|
||||
- " mov %%ebx, %%esi\n"
|
||||
- " popq %%rbx\n"
|
||||
- : "=a" (*a), "=S" (*b), "=c" (*c), "=d" (*d)
|
||||
- : "0" (op));
|
||||
+ : "+a" (*a), "=b" (*b), "=c" (*c), "=d" (*d));
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -185,7 +182,7 @@ oil_cpu_detect_cpuid (void)
|
||||
{
|
||||
uint32_t eax, ebx, ecx, edx;
|
||||
uint32_t level;
|
||||
- char vendor[13] = { 0 };
|
||||
+ char vendor[13+4] = { 0 };
|
||||
int ret;
|
||||
|
||||
oil_fault_check_enable ();
|
||||
--
|
||||
cgit v0.9.0.2-2-gbebe
|
@ -1,19 +1,16 @@
|
||||
{ stdenv, fetchurl, autoconf, automake, libtool, libX11, pkgconfig, libXext, mesa, libdrm, libXfixes, intelgen4asm }:
|
||||
{ stdenv, fetchurl, libX11, pkgconfig, libXext, mesa, libdrm, libXfixes }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libva-1.0.12";
|
||||
name = "libva-1.1.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://cgit.freedesktop.org/libva/snapshot/${name}.tar.bz2";
|
||||
sha256 = "1xg8zvmh75w63sc8ykagzrbzswph6g9jardy8v83glkqzilaw2p8";
|
||||
url = "http://www.freedesktop.org/software/vaapi/releases/libva/${name}.tar.bz2";
|
||||
sha256 = "1a7g7i96ww8hmim2pq2a3xc89073lzacxn1xh9526bzhlqjdqsnv";
|
||||
};
|
||||
|
||||
buildInputs = [ autoconf automake libtool libX11 libXext pkgconfig mesa libdrm
|
||||
libXfixes intelgen4asm ];
|
||||
buildInputs = [ libX11 libXext pkgconfig mesa libdrm libXfixes ];
|
||||
|
||||
configureFlags = [ "--enable-i965-driver" "--enable-glx" ];
|
||||
|
||||
preConfigure = "sh autogen.sh";
|
||||
configureFlags = [ "--enable-glx" ];
|
||||
|
||||
meta = {
|
||||
homepage = http://www.freedesktop.org/wiki/Software/vaapi;
|
||||
|
@ -1,10 +1,25 @@
|
||||
{stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "STLport-5.2.0";
|
||||
stdenv.mkDerivation rec {
|
||||
name = "STLport-5.2.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/stlport/STLport-5.2.0.tar.bz2;
|
||||
md5 = "448d74859407912c0087adcf51bf109a";
|
||||
url = "mirror://sourceforge/stlport/${name}.tar.bz2";
|
||||
sha256 = "1jbgak1m1qk7d4gyn1p2grbws2icsf7grbs3dh44ai9ck1xh0nvm";
|
||||
};
|
||||
|
||||
# fix hardcoded /usr/bin; not recognizing the standard --disable-static flag
|
||||
configurePhase = ''
|
||||
echo Preconf: build/Makefiles/gmake/*/sys.mak
|
||||
for f in build/Makefiles/gmake/*/sys.mak; do
|
||||
substituteInPlace "$f" --replace /usr/bin/ ""
|
||||
done
|
||||
./configure --prefix=$out
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "An implementation of the C++ Standard Library";
|
||||
homepage = http://sourceforge.net/projects/stlport/;
|
||||
license = "free"; # seems BSD-like
|
||||
};
|
||||
}
|
||||
|
24
pkgs/development/libraries/vaapi-intel/default.nix
Normal file
24
pkgs/development/libraries/vaapi-intel/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ stdenv, fetchurl, autoconf, automake, libtool, mesa, libva, libdrm, libX11, pkgconfig
|
||||
, intelgen4asm }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libva-intel-driver-1.0.19";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.freedesktop.org/software/vaapi/releases/libva-intel-driver/${name}.tar.bz2";
|
||||
sha256 = "14m7krah3ajkwj190q431lqqa84hdljcdmrcrqkbgaffyjlqvdid";
|
||||
};
|
||||
|
||||
buildInputs = [ autoconf automake libtool mesa libva pkgconfig libdrm libX11 intelgen4asm ];
|
||||
|
||||
preConfigure = ''
|
||||
sh autogen.sh
|
||||
sed -i -e "s,LIBVA_DRIVERS_PATH=.*,LIBVA_DRIVERS_PATH=$out/lib/dri," configure
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://cgit.freedesktop.org/vaapi/intel-driver/;
|
||||
license = "MIT";
|
||||
description = "Intel driver for the VAAPI library";
|
||||
};
|
||||
}
|
22
pkgs/development/libraries/vaapi-vdpau/default.nix
Normal file
22
pkgs/development/libraries/vaapi-vdpau/default.nix
Normal file
@ -0,0 +1,22 @@
|
||||
{ stdenv, fetchurl, libvdpau, mesa, libva, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libva-vdpau-driver-0.7.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.freedesktop.org/software/vaapi/releases/libva-vdpau-driver/${name}.tar.bz2";
|
||||
sha256 = "1fcvgshzyc50yb8qqm6v6wn23ghimay23ci0p8sm8gxcy211jp0m";
|
||||
};
|
||||
|
||||
buildInputs = [ libvdpau mesa libva pkgconfig ];
|
||||
|
||||
preConfigure = ''
|
||||
sed -i -e "s,LIBVA_DRIVERS_PATH=.*,LIBVA_DRIVERS_PATH=$out/lib/dri," configure
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://cgit.freedesktop.org/vaapi/vdpau-driver/;
|
||||
license = "GPLv2+";
|
||||
description = "VDPAU driver for the VAAPI library";
|
||||
};
|
||||
}
|
@ -2,7 +2,7 @@ a :
|
||||
let
|
||||
fetchurl = a.fetchurl;
|
||||
|
||||
version = a.lib.attrByPath ["version"] "0.5" a;
|
||||
version = a.lib.attrByPath ["version"] "0.10" a;
|
||||
buildInputs = with a; [
|
||||
python pil makeWrapper
|
||||
];
|
||||
@ -10,7 +10,7 @@ in
|
||||
rec {
|
||||
src = fetchurl {
|
||||
url = "http://prdownloads.sourceforge.net/docutils/docutils-${version}.tar.gz";
|
||||
sha256 = "03k1dakb5j1xi1xd62vqqy7dkgd1fhr4ahmvvmd5g87wxn2gjz3l";
|
||||
sha256 = "0gk0733w34zibzvi6paqqfbbajzaxajc4z5i5wpxlwv73gk281ip";
|
||||
};
|
||||
|
||||
inherit buildInputs;
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
cabal.mkDerivation (self: {
|
||||
pname = "hlint";
|
||||
version = "1.8.42";
|
||||
sha256 = "03myq4wagx5d9g6v8znw4l67f1irami0fnlw48rxlqhfn33y5mgc";
|
||||
version = "1.8.43";
|
||||
sha256 = "0wffswyx60qig1is3ki5asp8i4wvd3gqg2r811rw0zxwi3nrjiv6";
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
buildDepends = [
|
||||
|
@ -1,78 +1,96 @@
|
||||
{ stdenv, fetchurl, unzip, zlib, libpng, bzip2, SDL, SDL_mixer } :
|
||||
{ stdenv, fetchurl, unzip, zlib, libpng, bzip2, SDL, SDL_mixer, makeWrapper } :
|
||||
|
||||
let
|
||||
# This is the default "pakset" of objects, images, text, music, etc.
|
||||
result = withPak (mkPak pak128);
|
||||
|
||||
ver_1 = "112";
|
||||
ver_2 = "1";
|
||||
ver_h2 = "${ver_1}-${ver_2}";
|
||||
|
||||
# "pakset" of objects, images, text, music, etc.
|
||||
mkPak = src: stdenv.mkDerivation {
|
||||
name = "simutrans-pakset";
|
||||
inherit src;
|
||||
unpackPhase = "true";
|
||||
buildInputs = [ unzip ];
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cd $out
|
||||
unzip ${src}
|
||||
mv simutrans/*/* .
|
||||
rm -rf simutrans
|
||||
'';
|
||||
};
|
||||
pak64 = fetchurl {
|
||||
url = http://sourceforge.net/projects/simutrans/files/pak64/110-0-1/simupak64-110-0-1.zip/download;
|
||||
name = "pak64.zip";
|
||||
sha256 = "0gs6k9dbbhh60g2smsx2jza65vyss616bpngwpvilrvb5rzzrxcq";
|
||||
url = "mirror://sourceforge/simutrans/pak64/${ver_h2}/simupak64-${ver_h2}.zip";
|
||||
sha256 = "1197rl2534wx9wdafarlr42qjw6pyghz4bynq2g68pi10h8csypw";
|
||||
};
|
||||
pak128 = fetchurl {
|
||||
url = "mirror://sourceforge/simutrans/pak128/pak128%20for%20${ver_1}/pak128-2.2.0--${ver_1}.0.zip";
|
||||
sha256 = "13rwv9q3fa3ac0k11ds7zkpd00k4mn14rb0cknknvyz46icb9n80";
|
||||
};
|
||||
|
||||
# The source distribution seems to be missing some text files.
|
||||
# So we will get them from the binary Linux release (which apparently has them).
|
||||
langtab = fetchurl {
|
||||
url = http://sourceforge.net/projects/simutrans/files/simutrans/110-0-1/simulinux-110-0-1.zip/download;
|
||||
name = "simulinux-110-0-1.zip";
|
||||
sha256 = "15z13kazdzhfzwxry7a766xkkdzaidvscylzrjkx3nnbcq6461s4";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "simutrans";
|
||||
version = "110.0.1";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://github.com/aburch/simutrans/tarball/v110.0.1";
|
||||
name = "${name}.tar.gz";
|
||||
sha256 = "ab0e42e5013d6d2fd5d3176b39dc45e482583b3bad178aac1188bf2ec88feb51";
|
||||
withPak = pak: stdenv.mkDerivation {
|
||||
inherit (binaries) name;
|
||||
unpackPhase = "true";
|
||||
buildInputs = [ makeWrapper ];
|
||||
installPhase = ''makeWrapper "${binaries}/bin/simutrans" "$out/bin/simutrans" --add-flags -objects --add-flags "${pak}"'';
|
||||
inherit (binaries) meta;
|
||||
};
|
||||
|
||||
buildInputs = [ zlib libpng bzip2 SDL SDL_mixer unzip ];
|
||||
binaries = stdenv.mkDerivation rec {
|
||||
pname = "simutrans";
|
||||
name = "${pname}-${ver_1}.${ver_2}";
|
||||
|
||||
prePatch = ''
|
||||
# Use ~/.simutrans instead of ~/simutrans
|
||||
sed -i 's@%s/simutrans@%s/.simutrans@' simsys_s.cc
|
||||
'';
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/simutrans/simutrans/${ver_h2}/simutrans-src-${ver_h2}.zip";
|
||||
sha256 = "1xrxpd5m2dc9bk8w21smfj28r41ji1qaihjwkwrifgz6rhg19l5c";
|
||||
};
|
||||
sourceRoot = ".";
|
||||
|
||||
preConfigure = ''
|
||||
# Configuration as per the readme.txt
|
||||
sed -i 's@#BACKEND = sdl@BACKEND = sdl@' config.template
|
||||
sed -i 's@#COLOUR_DEPTH = 16@COLOUR_DEPTH = 16@' config.template
|
||||
sed -i 's@#OSTYPE = linux@OSTYPE = linux@' config.template
|
||||
sed -i 's@#OPTIMISE = 1@OPTIMISE = 1@' config.template
|
||||
buildInputs = [ zlib libpng bzip2 SDL SDL_mixer unzip ];
|
||||
|
||||
cp config.template config.default
|
||||
'';
|
||||
preConfigure = ''
|
||||
# Configuration as per the readme.txt
|
||||
sed \
|
||||
-e 's@#BACKEND = sdl@BACKEND = sdl@' \
|
||||
-e 's@#COLOUR_DEPTH = 16@COLOUR_DEPTH = 16@' \
|
||||
-e 's@#OSTYPE = linux@OSTYPE = linux@' \
|
||||
< config.template > config.default
|
||||
|
||||
installPhase = ''
|
||||
# Erase the source distribution object definitions, will be replaced with langtab.
|
||||
rm -r simutrans
|
||||
# Different default data dir
|
||||
sed -i -e 's:argv\[0\]:"'$out'/share/simutrans/":' \
|
||||
simmain.cc
|
||||
|
||||
# Default pakset and binary release core objects.
|
||||
unzip ${pak64}
|
||||
unzip ${langtab}
|
||||
# Use ~/.simutrans instead of ~/simutrans ##not working
|
||||
#sed -i -e 's@%s/simutrans@%s/.simutrans@' simsys_s.cc
|
||||
|
||||
mv sim simutrans/
|
||||
|
||||
mkdir -p $out/simutrans
|
||||
cp -r simutrans $out
|
||||
|
||||
mkdir -p $out/bin
|
||||
ln -s $out/simutrans/sim $out/bin/simutrans
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Simutrans is a simulation game in which the player strives to run a successful transport system.";
|
||||
longDescription = ''
|
||||
Simutrans is a cross-platform simulation game in which the
|
||||
player strives to run a successful transport system by
|
||||
transporting goods, passengers, and mail between
|
||||
places. Simutrans is an open source remake of Transport Tycoon.
|
||||
# No optimization overriding
|
||||
sed -i -e '/-O$/d' Makefile
|
||||
'';
|
||||
|
||||
homepage = http://www.simutrans.com/;
|
||||
license = "Artistic";
|
||||
maintainers = [ stdenv.lib.maintainers.kkallio ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/
|
||||
mv simutrans $out/share/
|
||||
|
||||
mkdir -p $out/bin/
|
||||
mv build/default/sim $out/bin/simutrans
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A simulation game in which the player strives to run a successful transport system";
|
||||
longDescription = ''
|
||||
Simutrans is a cross-platform simulation game in which the
|
||||
player strives to run a successful transport system by
|
||||
transporting goods, passengers, and mail between
|
||||
places. Simutrans is an open source remake of Transport Tycoon.
|
||||
'';
|
||||
|
||||
homepage = http://www.simutrans.com/;
|
||||
license = "Artistic";
|
||||
maintainers = [ stdenv.lib.maintainers.kkallio ];
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
in result
|
||||
|
@ -1,35 +0,0 @@
|
||||
{ stdenv, fetchurl, arts, kdelibs, libX11, libXext, libXt, perl, qt3, zlib }:
|
||||
|
||||
let
|
||||
|
||||
versionNumber = "0.5.3";
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
||||
name = "six-${versionNumber}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://six.retes.hu/download/six-${versionNumber}.tar.gz";
|
||||
sha256 = "0hialm0kxr11rp5z452whjmxp2vaqqj668d0dfs32fd10ggi8wj4";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Six - A Hex playing program for KDE";
|
||||
homepage = http://six.retes.hu/;
|
||||
license = "GPLv2";
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
|
||||
buildInputs = [ arts kdelibs libX11 libXext libXt perl qt3 zlib ];
|
||||
|
||||
# Supress some warnings which are less useful to us when making packages.
|
||||
NIX_CFLAGS_COMPILE = "-Wno-conversion -Wno-parentheses";
|
||||
|
||||
# Without "--x-libraries=", we get the error
|
||||
# "impure path `/usr/lib' used in link".
|
||||
configureFlags = "--x-libraries=";
|
||||
|
||||
patches = [ ./gcc43-includes.patch ];
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
This patch makes six compile with gcc 4.3 by including more header files. It
|
||||
is based on the advice at <http://gcc.gnu.org/gcc-4.3/porting_to.html>.
|
||||
|
||||
--- a/six/carrier.h
|
||||
+++ b/six/carrier.h
|
||||
@@ -2,6 +2,7 @@
|
||||
#ifndef CARRIER_H
|
||||
#define CARRIER_H
|
||||
|
||||
+#include <cstring>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
diff --git a/six/hexgame.cpp b/six/hexgame.cpp
|
||||
index 720e977..5d0dafe 100644
|
||||
--- a/six/hexgame.cpp
|
||||
+++ b/six/hexgame.cpp
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <cassert>
|
||||
#include <cctype>
|
||||
#include <cstdio>
|
||||
+#include <cstdlib>
|
||||
|
||||
#include <string>
|
||||
|
||||
diff --git a/six/main.cpp b/six/main.cpp
|
||||
index 7fb5c21..b925a0c 100644
|
||||
--- a/six/main.cpp
|
||||
+++ b/six/main.cpp
|
||||
@@ -4,6 +4,8 @@
|
||||
#include "carrier.h"
|
||||
#include "misc.h"
|
||||
|
||||
+#include <cstdlib>
|
||||
+
|
||||
#include <kapp.h>
|
||||
#include <dcopclient.h>
|
||||
#include <kaboutdata.h>
|
@ -5,7 +5,7 @@ with {
|
||||
inherit (import ./trivial.nix) or;
|
||||
inherit (import ./default.nix) fold;
|
||||
inherit (import ./strings.nix) concatStringsSep;
|
||||
inherit (import ./lists.nix) concatMap concatLists all;
|
||||
inherit (import ./lists.nix) concatMap concatLists all deepSeqList;
|
||||
inherit (import ./misc.nix) maybeAttr;
|
||||
};
|
||||
|
||||
@ -314,4 +314,5 @@ rec {
|
||||
overrideExisting = old: new:
|
||||
old // listToAttrs (map (attr: nameValuePair attr (attrByPath [attr] (getAttr attr old) new)) (attrNames old));
|
||||
|
||||
deepSeqAttrs = x: y: deepSeqList (attrValues x) y;
|
||||
}
|
||||
|
@ -1,4 +1,7 @@
|
||||
# General list operations.
|
||||
with {
|
||||
inherit (import ./trivial.nix) deepSeq;
|
||||
};
|
||||
|
||||
rec {
|
||||
inherit (builtins) head tail length isList add sub lessThan;
|
||||
@ -220,4 +223,5 @@ rec {
|
||||
++ zipTwoLists (tail xs) (tail ys)
|
||||
else [];
|
||||
|
||||
deepSeqList = xs: y: if any (x: deepSeq x false) xs then y else y;
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
with {
|
||||
inherit (import ./lists.nix) deepSeqList;
|
||||
inherit (import ./attrsets.nix) deepSeqAttrs;
|
||||
};
|
||||
|
||||
rec {
|
||||
|
||||
# Identity function.
|
||||
@ -22,4 +27,10 @@ rec {
|
||||
# evaluation of its first argument.
|
||||
seq = x: y: if x == null then y else y;
|
||||
|
||||
deepSeq = x: y:
|
||||
if builtins.isList x
|
||||
then deepSeqList x y
|
||||
else if builtins.isAttrs x
|
||||
then deepSeqAttrs x y
|
||||
else seq x y;
|
||||
}
|
||||
|
@ -43,6 +43,6 @@ stdenv.mkDerivation {
|
||||
description = "A standards-based printing system for UNIX";
|
||||
license = stdenv.lib.licenses.gpl2; # actually LGPL for the library and GPL for the rest
|
||||
maintainers = [ stdenv.lib.maintainers.urkud stdenv.lib.maintainers.simons ];
|
||||
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
@ -7,16 +7,17 @@ assert stdenv.isLinux;
|
||||
assert stdenv.gcc.gcc != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "wine-${meta.version}";
|
||||
version = "1.5.23";
|
||||
name = "wine-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/wine/${name}.tar.bz2";
|
||||
sha256 = "0l5kr3iq1lkv3gcw8ljzfjcfnsh9b5crdd4i0dzwdk1i3bfw2xxc";
|
||||
sha256 = "1wgs2bdl3sn3j0za7fk9zfjlii1x6qkvmyw4jxzz1mfw6nizswzr";
|
||||
};
|
||||
|
||||
gecko = fetchurl {
|
||||
url = "mirror://sourceforge/wine/wine_gecko-1.5-x86.msi";
|
||||
sha256 = "2e372a1b87ff2a22ad5127400ece4b09e55591d9f84e00bb562d294898a49b5c";
|
||||
url = "mirror://sourceforge/wine/wine_gecko-1.9-x86.msi";
|
||||
sha256 = "10p7djsf85xjk8rzg3hgw5fskrn8402y2aijy701xwm4hy9ga79g";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
@ -46,7 +47,6 @@ stdenv.mkDerivation rec {
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
version = "1.5.21";
|
||||
homepage = "http://www.winehq.org/";
|
||||
license = "LGPL";
|
||||
description = "An Open Source implementation of the Windows API on top of X, OpenGL, and Unix";
|
||||
|
12
pkgs/os-specific/darwin/native-x11-and-opengl/default.nix
Normal file
12
pkgs/os-specific/darwin/native-x11-and-opengl/default.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{ stdenv, writeScript }:
|
||||
|
||||
assert stdenv.isDarwin;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "darwin-native-x11-and-opengl";
|
||||
|
||||
builder = writeScript "${name}-builder.sh" ''
|
||||
/bin/mkdir -p $out
|
||||
/bin/ln -sv /usr/X11/{bin,lib,include,share} $out/
|
||||
'';
|
||||
}
|
@ -4,7 +4,8 @@ stdenv.mkDerivation rec {
|
||||
name = "iwlwifi-2030-ucode-18.168.6.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://intellinuxwireless.org/iwlwifi/downloads/${name}.tgz";
|
||||
url = "http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=${name}.tgz";
|
||||
name = "${name}.tgz";
|
||||
sha256 = "0b69jpb46fk63ybyyb8lbh99j1d29ayp8fl98l18iqy3q7mx4ry8";
|
||||
};
|
||||
|
||||
|
@ -1,222 +0,0 @@
|
||||
{ stdenv, fetchurl, extraConfig ? "", ... } @ args:
|
||||
|
||||
let
|
||||
configWithPlatform = kernelPlatform:
|
||||
''
|
||||
# Don't include any debug features.
|
||||
DEBUG_KERNEL n
|
||||
|
||||
# Support drivers that need external firmware.
|
||||
STANDALONE n
|
||||
|
||||
# Make /proc/config.gz available.
|
||||
IKCONFIG_PROC y
|
||||
|
||||
# Optimize with -O2, not -Os.
|
||||
CC_OPTIMIZE_FOR_SIZE n
|
||||
|
||||
# Enable the kernel's built-in memory tester.
|
||||
MEMTEST y
|
||||
|
||||
# Include the CFQ I/O scheduler in the kernel, rather than as a
|
||||
# module, so that the initrd gets a good I/O scheduler.
|
||||
IOSCHED_CFQ y
|
||||
|
||||
# Disable some expensive (?) features.
|
||||
FTRACE n
|
||||
KPROBES n
|
||||
NUMA? n
|
||||
PM_TRACE_RTC n
|
||||
|
||||
# Enable various subsystems.
|
||||
ACCESSIBILITY y # Accessibility support
|
||||
AUXDISPLAY y # Auxiliary Display support
|
||||
DONGLE y # Serial dongle support
|
||||
HIPPI y
|
||||
MTD_COMPLEX_MAPPINGS y # needed for many devices
|
||||
NET_POCKET y # enable pocket and portable adapters
|
||||
SCSI_LOWLEVEL y # enable lots of SCSI devices
|
||||
SCSI_LOWLEVEL_PCMCIA y
|
||||
SPI y # needed for many devices
|
||||
SPI_MASTER y
|
||||
WAN y
|
||||
|
||||
# Networking options.
|
||||
IP_PNP n
|
||||
IPV6_PRIVACY y
|
||||
NETFILTER_ADVANCED y
|
||||
IP_VS_PROTO_TCP y
|
||||
IP_VS_PROTO_UDP y
|
||||
IP_VS_PROTO_ESP y
|
||||
IP_VS_PROTO_AH y
|
||||
IP_DCCP_CCID3 n # experimental
|
||||
CLS_U32_PERF y
|
||||
CLS_U32_MARK y
|
||||
|
||||
# Wireless networking.
|
||||
IPW2100_MONITOR y # support promiscuous mode
|
||||
IPW2200_MONITOR y # support promiscuous mode
|
||||
IWLWIFI_LEDS? y
|
||||
IWLWIFI_SPECTRUM_MEASUREMENT y
|
||||
IWL3945_SPECTRUM_MEASUREMENT y
|
||||
IWL4965 y # Intel Wireless WiFi 4965AGN
|
||||
IWL5000 y # Intel Wireless WiFi 5000AGN
|
||||
HOSTAP_FIRMWARE y # Support downloading firmware images with Host AP driver
|
||||
HOSTAP_FIRMWARE_NVRAM y
|
||||
|
||||
# Some settings to make sure that fbcondecor works - in particular,
|
||||
# disable tileblitting and the drivers that need it.
|
||||
|
||||
# Enable various FB devices.
|
||||
FB y
|
||||
FB_EFI y
|
||||
FB_NVIDIA_I2C y # Enable DDC Support
|
||||
FB_RIVA_I2C y
|
||||
FB_ATY_CT y # Mach64 CT/VT/GT/LT (incl. 3D RAGE) support
|
||||
FB_ATY_GX y # Mach64 GX support
|
||||
FB_SAVAGE_I2C y
|
||||
FB_SAVAGE_ACCEL y
|
||||
FB_SIS_300 y
|
||||
FB_SIS_315 y
|
||||
FB_3DFX_ACCEL y
|
||||
FB_GEODE y
|
||||
|
||||
# Video configuration
|
||||
# The intel drivers already require KMS
|
||||
DRM_I915_KMS y
|
||||
|
||||
# Sound.
|
||||
SND_AC97_POWER_SAVE y # AC97 Power-Saving Mode
|
||||
SND_HDA_INPUT_BEEP y # Support digital beep via input layer
|
||||
SND_USB_CAIAQ_INPUT y
|
||||
PSS_MIXER y # Enable PSS mixer (Beethoven ADSP-16 and other compatible)
|
||||
|
||||
# USB serial devices.
|
||||
USB_SERIAL_GENERIC y # USB Generic Serial Driver
|
||||
USB_SERIAL_KEYSPAN_MPR y # include firmware for various USB serial devices
|
||||
USB_SERIAL_KEYSPAN_USA28 y
|
||||
USB_SERIAL_KEYSPAN_USA28X y
|
||||
USB_SERIAL_KEYSPAN_USA28XA y
|
||||
USB_SERIAL_KEYSPAN_USA28XB y
|
||||
USB_SERIAL_KEYSPAN_USA19 y
|
||||
USB_SERIAL_KEYSPAN_USA18X y
|
||||
USB_SERIAL_KEYSPAN_USA19W y
|
||||
USB_SERIAL_KEYSPAN_USA19QW y
|
||||
USB_SERIAL_KEYSPAN_USA19QI y
|
||||
USB_SERIAL_KEYSPAN_USA49W y
|
||||
USB_SERIAL_KEYSPAN_USA49WLC y
|
||||
|
||||
# Filesystem options - in particular, enable extended attributes and
|
||||
# ACLs for all filesystems that support them.
|
||||
EXT2_FS_XATTR y # Ext2 extended attributes
|
||||
EXT2_FS_POSIX_ACL y # Ext2 POSIX Access Control Lists
|
||||
EXT2_FS_SECURITY y # Ext2 Security Labels
|
||||
EXT2_FS_XIP y # Ext2 execute in place support
|
||||
EXT4_FS_POSIX_ACL y
|
||||
EXT4_FS_SECURITY y
|
||||
REISERFS_FS_XATTR y
|
||||
REISERFS_FS_POSIX_ACL y
|
||||
REISERFS_FS_SECURITY y
|
||||
JFS_POSIX_ACL y
|
||||
JFS_SECURITY y
|
||||
XFS_QUOTA y
|
||||
XFS_POSIX_ACL y
|
||||
XFS_RT y # XFS Realtime subvolume support
|
||||
OCFS2_DEBUG_MASKLOG n
|
||||
OCFS2_FS_POSIX_ACL y
|
||||
BTRFS_FS_POSIX_ACL y
|
||||
UBIFS_FS_XATTR y
|
||||
UBIFS_FS_ADVANCED_COMPR y
|
||||
NFSD_V2_ACL y
|
||||
NFSD_V3 y
|
||||
NFSD_V3_ACL y
|
||||
NFSD_V4 y
|
||||
CIFS_XATTR y
|
||||
CIFS_POSIX y
|
||||
|
||||
# Security related features.
|
||||
STRICT_DEVMEM y # Filter access to /dev/mem
|
||||
SECURITY_SELINUX_BOOTPARAM_VALUE 0 # disable SELinux by default
|
||||
|
||||
# Misc. options.
|
||||
8139TOO_8129 y
|
||||
8139TOO_PIO n # PIO is slower
|
||||
AIC79XX_DEBUG_ENABLE n
|
||||
AIC7XXX_DEBUG_ENABLE n
|
||||
AIC94XX_DEBUG n
|
||||
B43_PCMCIA y
|
||||
BLK_DEV_BSG n
|
||||
BLK_DEV_CMD640_ENHANCED y # CMD640 enhanced support
|
||||
BLK_DEV_IDEACPI y # IDE ACPI support
|
||||
BLK_DEV_INTEGRITY y
|
||||
BSD_PROCESS_ACCT_V3 y
|
||||
BT_HCIUART_BCSP y
|
||||
BT_HCIUART_H4 y # UART (H4) protocol support
|
||||
BT_HCIUART_LL y
|
||||
BT_RFCOMM_TTY y # RFCOMM TTY support
|
||||
CPU_FREQ_DEBUG n
|
||||
CRASH_DUMP n
|
||||
DMAR? n # experimental
|
||||
DVB_DYNAMIC_MINORS y # we use udev
|
||||
FUSION y # Fusion MPT device support
|
||||
IDE_GD_ATAPI y # ATAPI floppy support
|
||||
IRDA_ULTRA y # Ultra (connectionless) protocol
|
||||
JOYSTICK_IFORCE_232 y # I-Force Serial joysticks and wheels
|
||||
JOYSTICK_IFORCE_USB y # I-Force USB joysticks and wheels
|
||||
JOYSTICK_XPAD_FF y # X-Box gamepad rumble support
|
||||
JOYSTICK_XPAD_LEDS y # LED Support for Xbox360 controller 'BigX' LED
|
||||
KALLSYMS_EXTRA_PASS n
|
||||
LDM_PARTITION y # Windows Logical Disk Manager (Dynamic Disk) support
|
||||
LEDS_TRIGGER_IDE_DISK y # LED IDE Disk Trigger
|
||||
LOGIRUMBLEPAD2_FF y # Logitech Rumblepad 2 force feedback
|
||||
LOGO n # not needed
|
||||
MEDIA_ATTACH y
|
||||
MEGARAID_NEWGEN y
|
||||
MICROCODE_AMD y
|
||||
MODVERSIONS y
|
||||
MOUSE_PS2_ELANTECH y # Elantech PS/2 protocol extension
|
||||
MTRR_SANITIZER y
|
||||
NET_FC y # Fibre Channel driver support
|
||||
PCI_LEGACY y
|
||||
PPP_MULTILINK y # PPP multilink support
|
||||
REGULATOR y # Voltage and Current Regulator Support
|
||||
SCSI_LOGGING y # SCSI logging facility
|
||||
SERIAL_8250 y # 8250/16550 and compatible serial support
|
||||
SLIP_COMPRESSED y # CSLIP compressed headers
|
||||
SLIP_SMART y
|
||||
THERMAL_HWMON y # Hardware monitoring support
|
||||
USB_DEBUG n
|
||||
USB_EHCI_ROOT_HUB_TT y # Root Hub Transaction Translators
|
||||
X86_CHECK_BIOS_CORRUPTION y
|
||||
X86_MCE y
|
||||
|
||||
# Enable Xen Dom0 support.
|
||||
XEN_DOM0 y
|
||||
XEN_PCI_PASSTHROUGH y
|
||||
|
||||
${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""}
|
||||
${extraConfig}
|
||||
'';
|
||||
in
|
||||
|
||||
import ./generic.nix (
|
||||
|
||||
rec {
|
||||
version = "2.6.32.24-xen-179eca5";
|
||||
localVersion = "-xen-179eca5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://nixos.org/tarballs/linux-${version}.tar.bz2";
|
||||
sha256 = "09a7xh4hvw0hzq67dqdxn8p4rkd907937xvshx30rg4ab6717scf";
|
||||
};
|
||||
|
||||
config = configWithPlatform stdenv.platform;
|
||||
configCross = configWithPlatform stdenv.cross.platform;
|
||||
|
||||
features.iwlwifi = true;
|
||||
|
||||
meta.description = "Linux kernel suitable for Xen Domain 0";
|
||||
}
|
||||
|
||||
// removeAttrs args ["extraConfig"]
|
||||
)
|
@ -1,10 +0,0 @@
|
||||
{stdenv, fetchurl, bison, flex}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "modutils-2.4.27";
|
||||
src = fetchurl {
|
||||
url = mirror://kernel/linux/utils/kernel/modutils/v2.4/modutils-2.4.27.tar.bz2;
|
||||
md5 = "bac989c74ed10f3bf86177fc5b4b89b6";
|
||||
};
|
||||
buildInputs = [bison flex];
|
||||
}
|
@ -1 +0,0 @@
|
||||
import ./ov511-2.30-default.nix
|
@ -1,18 +0,0 @@
|
||||
source $stdenv/setup
|
||||
|
||||
hashname=$(basename $kernel)
|
||||
echo $hashname
|
||||
if echo "$hashname" | grep -q '^[a-z0-9]\{32\}-'; then
|
||||
hashname=$(echo "$hashname" | cut -c -32)
|
||||
fi
|
||||
|
||||
stripHash $kernel
|
||||
version=$(echo $strippedName | cut -c 7-)-$hashname
|
||||
|
||||
echo "version $version"
|
||||
|
||||
export version
|
||||
|
||||
mkdir -p $out/lib/modules/$version/kernel/drivers/usb/media/
|
||||
|
||||
genericBuild
|
@ -1,13 +0,0 @@
|
||||
{stdenv, fetchurl, kernel}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ov511-2.30-${kernel.version}";
|
||||
builder = ./ov511-2.30-builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://nixos.org/tarballs/ov511-2.30.tar.bz2;
|
||||
md5 = "9eacf9e54f2f54a59ddbf14221a53f2a";
|
||||
};
|
||||
patches = [./ov511-kernel.patch ./ov511-2.32-kdir.patch];
|
||||
inherit kernel;
|
||||
NIX_GLIBC_FLAGS_SET=1;
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user