···11+{stdenv, fetchurl, libgcrypt}:
22+33+# library that allows libbluray to play AACS protected bluray disks
44+# libaacs does not infringe DRM's right or copyright. See the legal page of the website for more info.
55+66+# Info on how to use / obtain aacs keys:
77+# http://vlc-bluray.whoknowsmy.name/
88+# https://wiki.archlinux.org/index.php/BluRay
99+1010+1111+let baseName = "libaacs";
1212+ version = "0.3.0";
1313+in
1414+1515+stdenv.mkDerivation {
1616+ name = "${baseName}-${version}";
1717+1818+ src = fetchurl {
1919+ url = "http://download.videolan.org/pub/videolan/${baseName}/${version}/${baseName}-${version}.tar.bz2";
2020+ sha256 = "bf92dab1a6a8ee08a55e8cf347c2cda49e6535b52e85bb1e92e1cfcc8ecec22c";
2121+ };
2222+2323+ buildInputs = [libgcrypt];
2424+2525+ meta = {
2626+ homepage = http://www.videolan.org/developers/libbluray.html;
2727+ description = "Library to access Blu-Ray disks for video playback";
2828+ license = stdenv.lib.licenses.lgpl21;
2929+ };
3030+}
+33
pkgs/development/libraries/libbluray/default.nix
···11+{stdenv, fetchgit, autoconf, automake, libtool, libaacs ? null, jdk ? null, ant ? null, withAACS ? false}:
22+33+assert withAACS -> jdk != null && ant != null && libaacs != null;
44+55+# Info on how to use:
66+# https://wiki.archlinux.org/index.php/BluRay
77+88+let baseName = "libbluray";
99+ version = "0.2.1";
1010+1111+in
1212+1313+stdenv.mkDerivation {
1414+ name = "${baseName}-${version}";
1515+1616+ src = fetchgit {
1717+ url = git://git.videolan.org/libbluray.git;
1818+ rev = "3b9a9f044644a6abe9cb09377f714ded9fdd6c87";
1919+ sha256 = "551b623e76c2dba44b5490fb42ccdc491b28cd42841de28237b8edbed0f0711c";
2020+ };
2121+2222+ buildInputs = [autoconf automake libtool] ++ stdenv.lib.optionals withAACS [jdk ant libaacs];
2323+ NIX_LDFLAGS = stdenv.lib.optionalString withAACS "-laacs";
2424+2525+ preConfigure = "./bootstrap";
2626+ configureFlags = ["--disable-static"] ++ stdenv.lib.optionals withAACS ["--enable-bdjava" "--with-jdk=${jdk}"];
2727+2828+ meta = {
2929+ homepage = http://www.videolan.org/developers/libbluray.html;
3030+ description = "Library to access Blu-Ray disks for video playback";
3131+ license = stdenv.lib.licenses.lgpl21;
3232+ };
3333+}
···11-{ stdenv, fetchurl, gfortran }:
11+{ stdenv, fetchurl, gfortran, tolerateCpuTimingInaccuracy ? true }:
22+33+let
44+ optionalString = stdenv.lib.optionalString;
55+in
2637stdenv.mkDerivation {
48 name = "atlas-3.9.67";
55-99+610 src = fetchurl {
711 url = mirror://sf/math-atlas/atlas3.9.67.tar.bz2;
812 sha256 = "06xxlv440z8a3qmfrh17p28girv71c6awvpw5vhpspr0pcsgk1pa";
913 };
10141111- # configure outside of the source directory
1515+ # Configure outside of the source directory.
1216 preConfigure = '' mkdir build; cd build; configureScript=../configure; '';
13171414- # the manual says you should pass -fPIC as configure arg .. It works
1515- configureFlags = "-Fa alg -fPIC";
1818+ # * The manual says you should pass -fPIC as configure arg. Not sure why, but
1919+ # it works.
2020+ #
2121+ # * Atlas aborts the build if it detects that some kind of CPU frequency
2222+ # scaling is active on the build machine because that feature offsets the
2323+ # performance timings. We ignore that check, however, because with binaries
2424+ # being pre-built on Hydra those timings aren't accurate for the local
2525+ # machine in the first place.
2626+ configureFlags = "-Fa alg -fPIC"
2727+ + optionalString stdenv.isi686 " -b 32"
2828+ + optionalString tolerateCpuTimingInaccuracy " -Si cputhrchk 0";
16291730 buildInputs = [ gfortran ];
18313232+ doCheck = true;
3333+1934 meta = {
2020- description = "Atlas library";
3535+ homepage = "http://math-atlas.sourceforge.net/";
3636+ description = "Automatically Tuned Linear Algebra Software (ATLAS)";
2137 license = "GPL";
2222- homepage = http://math-atlas.sourceforge.net/;
3838+3939+ longDescription = ''
4040+ The ATLAS (Automatically Tuned Linear Algebra Software) project is an ongoing
4141+ research effort focusing on applying empirical techniques in order to provide
4242+ portable performance. At present, it provides C and Fortran77 interfaces to a
4343+ portably efficient BLAS implementation, as well as a few routines from LAPACK.
4444+ '';
2345 };
2446}
···55let
66 configWithPlatform = kernelPlatform :
77 ''
88- # Don't include any debug features.
99- DEBUG_KERNEL n
88+ # powermanagement and debugging for powertop
99+ DEBUG_KERNEL y
1010+ PM_ADVANCED_DEBUG y
1111+ PM_RUNTIME y
1212+ TIMER_STATS y
1313+ USB_SUSPEND y
1414+ BACKTRACE_SELF_TEST n
1515+ CPU_NOTIFIER_ERROR_INJECT n
1616+ DEBUG_DEVRES n
1717+ DEBUG_NX_TEST n
1818+ DEBUG_STACK_USAGE n
1919+ DEBUG_STACKOVERFLOW n
2020+ RCU_TORTURE_TEST n
2121+ SCHEDSTATS n
10221123 # Support drivers that need external firmware.
1224 STANDALONE n
+14-2
pkgs/os-specific/linux/kernel/linux-3.0.nix
···55let
66 configWithPlatform = kernelPlatform :
77 ''
88- # Don't include any debug features.
99- DEBUG_KERNEL n
88+ # powermanagement and debugging for powertop
99+ DEBUG_KERNEL y
1010+ PM_ADVANCED_DEBUG y
1111+ PM_RUNTIME y
1212+ TIMER_STATS y
1313+ USB_SUSPEND y
1414+ BACKTRACE_SELF_TEST n
1515+ CPU_NOTIFIER_ERROR_INJECT n
1616+ DEBUG_DEVRES n
1717+ DEBUG_NX_TEST n
1818+ DEBUG_STACK_USAGE n
1919+ DEBUG_STACKOVERFLOW n
2020+ RCU_TORTURE_TEST n
2121+ SCHEDSTATS n
10221123 # Support drivers that need external firmware.
1224 STANDALONE n
+14-2
pkgs/os-specific/linux/kernel/linux-3.1.nix
···55let
66 configWithPlatform = kernelPlatform :
77 ''
88- # Don't include any debug features.
99- DEBUG_KERNEL n
88+ # powermanagement and debugging for powertop
99+ DEBUG_KERNEL y
1010+ PM_ADVANCED_DEBUG y
1111+ PM_RUNTIME y
1212+ TIMER_STATS y
1313+ USB_SUSPEND y
1414+ BACKTRACE_SELF_TEST n
1515+ CPU_NOTIFIER_ERROR_INJECT n
1616+ DEBUG_DEVRES n
1717+ DEBUG_NX_TEST n
1818+ DEBUG_STACK_USAGE n
1919+ DEBUG_STACKOVERFLOW n
2020+ RCU_TORTURE_TEST n
2121+ SCHEDSTATS n
10221123 # Support drivers that need external firmware.
1224 STANDALONE n
+17-5
pkgs/os-specific/linux/kernel/linux-3.2.nix
···55let
66 configWithPlatform = kernelPlatform :
77 ''
88- # Don't include any debug features.
99- DEBUG_KERNEL n
88+ # powermanagement and debugging for powertop
99+ DEBUG_KERNEL y
1010+ PM_ADVANCED_DEBUG y
1111+ PM_RUNTIME y
1212+ TIMER_STATS y
1313+ USB_SUSPEND y
1414+ BACKTRACE_SELF_TEST n
1515+ CPU_NOTIFIER_ERROR_INJECT n
1616+ DEBUG_DEVRES n
1717+ DEBUG_NX_TEST n
1818+ DEBUG_STACK_USAGE n
1919+ DEBUG_STACKOVERFLOW n
2020+ RCU_TORTURE_TEST n
2121+ SCHEDSTATS n
10221123 # Support drivers that need external firmware.
1224 STANDALONE n
···214226import ./generic.nix (
215227216228 rec {
217217- version = "3.2.4";
229229+ version = "3.2.7";
218230 testing = false;
219231220232 modDirVersion = version;
···222234 preConfigure = ''
223235 substituteInPlace scripts/depmod.sh --replace '-b "$INSTALL_MOD_PATH"' ""
224236 '';
225225-237237+226238 src = fetchurl {
227239 url = "mirror://kernel/linux/kernel/v3.0/${if testing then "testing/" else ""}linux-${version}.tar.bz2";
228228- sha256 = "1c648a7041e65a167d3fd8beda484a3d55c35cad9d6d189b9949d3c621887da7";
240240+ sha256 = "e80009e097e137b9a1f1efacabc482c1d4b3651b238bf733a41595d0b387ae12";
229241 };
230242231243 config = configWithPlatform stdenv.platform;
+14
pkgs/os-specific/linux/kernel/patches.nix
···252252 features.aufs3 = true;
253253 };
254254255255+ aufs3_2 = rec {
256256+ name = "aufs3.2";
257257+ version = "3.2";
258258+ utilRev = "a953b0218667e06b722f4c41df29edacd8dc8e1f";
259259+ utilHash = "28ac4c1a07b2c30fb61a6facc9cedcf67b14f303baedf1b121aeb6293ea49eb4";
260260+ patch = makeAufs3StandalonePatch {
261261+ inherit version;
262262+ rev = "9c4bbeb58f0ecc235ea820ae320efa2c0006e033";
263263+ sha256 = "5363a7f5fbadaef9457e743a5781f2525332c4bbb91693ca2596ab2d8f7860ea";
264264+ };
265265+ features.aufsBase = true;
266266+ features.aufs3 = true;
267267+ };
268268+255269 # Increase the timeout on CIFS requests from 15 to 120 seconds to
256270 # make CIFS more resilient to high load on the CIFS server.
257271 cifs_timeout_2_6_15 =
+4-1
pkgs/servers/samba/default.nix
···2828 patches =
2929 [ # Fix for https://bugzilla.samba.org/show_bug.cgi?id=8541.
3030 ./readlink.patch
3131+3232+ # Allow cross-builds for GNU/Hurd.
3333+ ./libnss-wins-pthread.patch
3134 ];
32353336 buildInputs = [ readline pam openldap popt iniparser libunwind fam acl cups ]
···3942 # XXX: Awful hack to allow cross-compilation.
4043 '' sed -i source3/configure \
4144 -e 's/^as_fn_error \("cannot run test program while cross compiling\)/$as_echo \1/g'
4242- '';
4545+ ''; # "
43464447 preConfigure =
4548 '' cd source3
+15
pkgs/servers/samba/libnss-wins-pthread.patch
···11+`libnss_wins' uses pthreads but is built without `-pthread'. This is
22+not a problem when building natively on GNU/Linux, but causes troubles
33+when cross-building for GNU/Hurd (undefined references to libpthread
44+functions.)
55+66+--- samba-3.6.1/source3/Makefile.in 2012-02-22 15:25:15.000000000 +0100
77++++ samba-3.6.1/source3/Makefile.in 2012-02-22 15:25:47.000000000 +0100
88+@@ -2760,6 +2760,7 @@ bin/vlp@EXEEXT@: $(BINARY_PREREQS) $(VLP
99+ @echo "Linking $@"
1010+ @$(SHLD) $(LDSHFLAGS) -o $@ $(WINBIND_WINS_NSS_OBJ) \
1111+ $(LDAP_LIBS) $(KRB5LIBS) $(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(ZLIB_LIBS) \
1212++ $(PTHREAD_LDFLAGS) \
1313+ @SONAMEFLAG@`basename $@`@NSSSONAMEVERSIONSUFFIX@
1414+1515+ bin/winbind_krb5_locator.@SHLIBEXT@: $(BINARY_PREREQS) $(WINBIND_KRB5_LOCATOR_OBJ) $(LIBWBCLIENT)