···11+{ stdenv, fetchurl, python, gettext, intltool, pkgconfig, jackaudio, libsndfile
22+, glib, gtk, glibmm, gtkmm, fftw, librdf, ladspaH, boost }:
33+44+stdenv.mkDerivation rec {
55+ name = "guitarix-${version}";
66+ version = "0.25.2";
77+88+ src = fetchurl {
99+ url = "mirror://sourceforge/guitarix/guitarix2-${version}.tar.bz2";
1010+ sha256 = "1wcg3yc2iy72hj6z9l88393f00by0iwhhn8xrc3q55p4rj0mnrga";
1111+ };
1212+1313+ buildInputs =
1414+ [ python gettext intltool pkgconfig jackaudio libsndfile glib gtk glibmm
1515+ gtkmm fftw librdf ladspaH boost
1616+ ];
1717+1818+ configurePhase = "python waf configure --prefix=$out";
1919+2020+ buildPhase = "python waf build";
2121+2222+ installPhase = "python waf install";
2323+2424+ meta = {
2525+ description = "A virtual guitar amplifier for Linux running with JACK";
2626+ longDescription = ''
2727+ guitarix is a virtual guitar amplifier for Linux running with
2828+ JACK (Jack Audio Connection Kit). It is free as in speech and
2929+ free as in beer. Its free sourcecode allows to build it for
3030+ other UNIX-like systems also, namely for BSD and for MacOSX.
3131+3232+ It takes the signal from your guitar as any real amp would do:
3333+ as a mono-signal from your sound card. Your tone is processed by
3434+ a main amp and a rack-section. Both can be routed separately and
3535+ deliver a processed stereo-signal via JACK. You may fill the
3636+ rack with effects from more than 25 built-in modules spanning
3737+ from a simple noise-gate to brain-slashing modulation-fx like
3838+ flanger, phaser or auto-wah. Your signal is processed with
3939+ minimum latency. On any properly set-up Linux-system you do not
4040+ need to wait for more than 10 milli-seconds for your playing to
4141+ be delivered, processed by guitarix.
4242+4343+ guitarix offers the range of sounds you would expect from a
4444+ full-featured universal guitar-amp. You can get crisp
4545+ clean-sounds, nice overdrive, fat distortion and a diversity of
4646+ crazy sounds never heard before.
4747+ '';
4848+ homepage = http://guitarix.sourceforge.net/;
4949+ license = stdenv.lib.licenses.gpl3Plus;
5050+ maintainers = [ stdenv.lib.maintainers.astsmtl ];
5151+ platforms = stdenv.lib.platforms.linux;
5252+ };
5353+}
+5-3
pkgs/applications/audio/qjackctl/default.nix
···11{ stdenv, fetchurl, qt4, alsaLib, jackaudio, dbus }:
2233stdenv.mkDerivation rec {
44- version = "0.3.8";
44+ version = "0.3.9";
55 name = "qjackctl-${version}";
6677 # some dependencies such as killall have to be installed additionally
8899 src = fetchurl {
1010 url = "mirror://sourceforge/qjackctl/${name}.tar.gz";
1111- sha256 = "1rbipbknq7f8qfma33vwfv2ar3vxkz1p1ykp5mx6nirmcn1nj247";
1111+ sha256 = "0a4s7lwd5b67qbwv1yck8bw6zz8ffx1gza5fwflfqrfcfl3dds2y";
1212 };
13131414 buildInputs = [ qt4 alsaLib jackaudio dbus ];
15151616+ configureFlags = "--enable-jack-version";
1717+1618 meta = {
1717- description = "qt jackd control gui tool";
1919+ description = "A Qt application to control the JACK sound server daemon";
1820 homepage = http://qjackctl.sourceforge.net/;
1921 license = "GPL";
2022 };
···7878 do
7979 channel="${chline%%,*}";
8080 version="${chline##*,}";
8181- url="${bucket_url%/}/chromium-$version.tar.bz2";
8181+8282+ # XXX: Remove case after version 26 is stable:
8383+ case "${version%%.*}" in
8484+ 26) url="${bucket_url%/}/chromium-$version-lite.tar.xz";;
8585+ *) url="${bucket_url%/}/chromium-$version.tar.bz2";;
8686+ esac;
82878388 echo -n "Checking if sha256 of version $version is cached..." >&2;
8489 if sha256="$(sha_lookup "$version")";
···15151616rec {
17171818- firefoxVersion = "18.0.1";
1818+ firefoxVersion = "18.0.2";
19192020- xulVersion = "18.0.1"; # this attribute is used by other packages
2020+ xulVersion = "18.0.2"; # this attribute is used by other packages
212122222323 src = fetchurl {
···2727 # Fall back to this url for versions not available at releases.mozilla.org.
2828 "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/${firefoxVersion}/source/firefox-${firefoxVersion}.source.tar.bz2"
2929 ];
3030- sha1 = "26415396233450a4e66bb0e0a73a258e1cb174ef";
3030+ sha1 = "fe5810d61edf6f4dc8bc477a08f9483b955f747b";
3131 };
32323333 commonConfigureFlags =
···45454646stdenv.mkDerivation rec {
4747 name = "google-talk-plugin-${version}";
4848+ # Use the following to determine the current upstream version:
4949+ # curl -s http://dl.google.com/linux/talkplugin/deb/dists/stable/main/binary-amd64/Packages | sed -nr 's/^Version: *([^ ]+)-1$/\1/p'
4850 version = "3.10.2.0";
49515052 src =
···11-# Patchelf fails to hard-code the library paths to ledger's
22-# libamounts.so and libledger-2.6.3 shared objects:
33-#
44-# $ ldd ~/.nix-profile/bin/ledger
55-# linux-vdso.so.1 => (0x00007fff513ff000)
66-# libamounts.so.0 => not found
77-# libledger-2.6.3.so => not found
88-# libstdc++.so.6 => /nix/store/3r8kfi33y3lbrsvlx8vzwm74h8178y35-gcc-4.5.1/lib/../lib64/libstdc++.so.6 (0x00007f1f0feee000)
99-# libpcre.so.0 => /nix/store/kfhy189arpj3wrfzpgw8p9ac4g4hfgca-pcre-8.10/lib/libpcre.so.0 (0x00007f1f0fcd3000)
1010-# libgmp.so.3 => /nix/store/ji6py9m9w2ray1bmpkmgig9llj1i2ggf-gmp-4.3.2/lib/libgmp.so.3 (0x00007f1f0fa7f000)
1111-# libm.so.6 => /nix/store/vxycd107wjbhcj720hzkw2px7s7kr724-glibc-2.12.2/lib/libm.so.6 (0x00007f1f0f7fd000)
1212-# libgcc_s.so.1 => /nix/store/3r8kfi33y3lbrsvlx8vzwm74h8178y35-gcc-4.5.1/lib/../lib64/libgcc_s.so.1 (0x00007f1f0f5e8000)
1313-# libc.so.6 => /nix/store/vxycd107wjbhcj720hzkw2px7s7kr724-glibc-2.12.2/lib/libc.so.6 (0x00007f1f0f27d000)
1414-# /nix/store/vxycd107wjbhcj720hzkw2px7s7kr724-glibc-2.12.2/lib/ld-linux-x86-64.so.2 (0x00007f1f101ef000)
1515-#
1616-# Fortunately, libtools builds the program with proper paths hard-coded
1717-# alread, so we don't need patchelf. Phew!
11+{ stdenv, fetchurl, emacs, gmp, pcre, expat }:
1821919-{stdenv, fetchurl, emacs, gmp, pcre, expat}:
2020-2121-let
33+stdenv.mkDerivation rec {
224 name = "ledger-2.6.3";
2323-in
2424-stdenv.mkDerivation {
2525- inherit name;
265276 src = fetchurl {
2828- url = "https://github.com/downloads/jwiegley/ledger/${name}.tar.gz";
77+ url = "https://github.com/downloads/ledger/ledger/${name}.tar.gz";
298 sha256 = "05zpnypcwgck7lwk00pbdlcwa347xsqifxh4zsbbn01m98bx1v5k";
309 };
31103211 buildInputs = [ emacs gmp pcre expat ];
33123413 configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3";
3535- dontPatchELF = true;
1414+3615 doCheck = true;
1616+1717+ # Patchelf breaks the hard-coded rpath to ledger's libamounts.0.so and
1818+ # libledger-2.6.3.so. Fortunately, libtool chooses proper rpaths to
1919+ # begin with, so we can just disable patchelf to avoid the issue.
2020+ dontPatchELF = true;
37213822 meta = {
3923 homepage = "http://ledger-cli.org/";
-105
pkgs/applications/office/openoffice/builder.sh
···11-source $stdenv/setup
22-33-export nodep=TRUE
44-export NO_HIDS=TRUE
55-66-export PATH=$icu/sbin:$PATH
77-88-postUnpack() {
99- tar xvjf $src_system
1010-}
1111-1212-preConfigure() {
1313- ./configure --help
1414-1515- for i in sysui/desktop/share/makefile.mk; do
1616- substituteInPlace $i --replace /bin/bash $shell
1717- done
1818-1919- SRCDIR=
2020-2121- sed -e '/CURL_NO_OLDIES/d' -i ucb/source/ucp/ftp/makefile.mk
2222-}
2323-2424-postConfigure() {
2525- for i in LinuxX86*Env.Set; do
2626- substituteInPlace $i --replace /usr /no-such-path
2727- done
2828- substituteInPlace solenv/inc/libs.mk \
2929- --replace /usr/lib/libjpeg.so $libjpeg/lib/libjpeg.so \
3030- --replace /usr/lib64/libjpeg.so $libjpeg/lib/libjpeg.so
3131-}
3232-3333-buildPhase() {
3434- source LinuxX86*Env.Set.sh
3535- ./bootstrap
3636- # bootstrap defines the alias 'build', that mostly runs this perl script:
3737- (cd instsetoo_native; perl ../solenv/bin/build.pl --all) # wait a few hours... add -P4 for quadcores
3838-}
3939-4040-wrapSOffice() {
4141- local fn=$1
4242- local arg=$2
4343-4444- # !!! should use makeWrapper for this.
4545-4646- cat > $out/bin/$fn <<EOF
4747-#! $shell
4848-# Add fontconfig to the library search path; apparently OpenOffice
4949-# looks for it at runtime.
5050-export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH\${LD_LIBRARY_PATH:+:}$fontconfig/lib:$libjpeg/lib:$cups/lib
5151-export JAVA_HOME=$jdk
5252-exec $ooFiles/openoffice.org3/program/soffice $arg "\$@"
5353-EOF
5454- chmod +x $out/bin/$fn
5555-}
5656-5757-installPhase() {
5858- ooFiles=$out/lib/openoffice
5959-6060- # This was all borrowed from ooo-build-2.2.1's bin/ooinstall.
6161- # This needs the ./bootstrap having run in the buildPhase to get some env vars.
6262- eval $(grep 'BUILD\|LAST_MINOR' $SOLARENV/inc/minor.mk)
6363- export PYTHONPATH=$SOLARVERSION/$INPATH/lib:$SRC_ROOT/instsetoo_native/$INPATH/bin:$PYTHONPATH
6464- export OUT=../$INPATH
6565- export LOCAL_OUT=../$INPATH
6666- export LOCAL_COMMON_OUT=../$INPATH
6767-6868- # Do the actual installation into $out.
6969- (cd $SRC_ROOT/instsetoo_native/util && perl -w $SOLARENV/bin/make_installer.pl \
7070- -f openoffice.lst -l en-US -p OpenOffice \
7171- -buildid $BUILD -simple $ooFiles)
7272-7373- mkdir -p $out/bin
7474- for i in soffice ooffice; do wrapSOffice $i; done
7575-7676- # Create some wrappers to start individual OpenOffice components.
7777- for i in writer calc draw impress base math web; do wrapSOffice oo$i -$i; done
7878-7979- # Create symlinks to desktop files, so that openoffice.org apps can be picked from
8080- # the application menu in KDE and GNOME
8181- mkdir -p $out/share
8282- ln -s $out/lib/openoffice/openoffice.org3/share/xdg $out/share/applications
8383-8484- # Apply a minor correction to the *.desktop files in order to correctly address the icons
8585- # The openoffice- prefix should be removed from the icon identifiers
8686- for appl in $out/share/applications/*.desktop
8787- do
8888- chmod 644 $appl # What's wrong with the file permissions?
8989- sed -i '/Icon/d' $appl
9090- echo "Icon=$(echo $(basename $appl) | sed 's/.desktop//')" >> $appl
9191- done
9292-9393- # Copy icons so that the menu items in KDE and GNOME will look much nicer
9494- (cd $SRC_ROOT/sysui/desktop/icons
9595- install -v -d $out/share/icons/{hicolor,locolor} -m 755
9696- cp -rv hicolor/*x* $out/share/icons/hicolor
9797- cp -rv locolor/*x* $out/share/icons/locolor
9898- )
9999-100100- # The desktop files expect a openoffice.org3 executable in the PATH, which is a symlink to soffice
101101- ln -s $out/bin/soffice $out/bin/openoffice.org3
102102-}
103103-104104-genericBuild
105105-
···66# Curl flags to handle redirects, not use EPSV, handle cookies for
77# servers to need them during redirects, and work on SSL without a
88# certificate (this isn't a security problem because we check the
99-# cryptographic hash of the output anyway).
99+# cryptographic hash of the output anyway).
1010curl="curl \
1111 --location --max-redirs 20 \
1212 --retry 3
···292930303131finish() {
3232- # On old versions of Nix, verify the hash of the output. On newer
3333- # versions, Nix verifies the hash itself.
3434- if test "$NIX_OUTPUT_CHECKED" != "1"; then
3535- if test "$outputHashAlgo" != "md5"; then
3636- echo "hashes other than md5 are unsupported in Nix <= 0.7, upgrade to Nix 0.8"
3737- exit 1
3838- fi
3939- actual=$(md5sum -b "$out" | cut -c1-32)
4040- if test "$actual" != "$id"; then
4141- echo "hash is $actual, expected $id"
4242- exit 1
4343- fi
4444- fi
4545-4632 stopNest
4733 exit 0
4834}
···5238 if test -n "$NIX_HASHED_MIRRORS"; then
5339 hashedMirrors="$NIX_HASHED_MIRRORS"
5440 fi
5555-4141+5642 for mirror in $hashedMirrors; do
5743 url="$mirror/$outputHashAlgo/$outputHash"
5858- if $curl --fail --silent --show-error --head "$url" \
4444+ if $curl --retry 0 --connect-timeout "${NIX_CONNECT_TIMEOUT:-15}" \
4545+ --fail --silent --show-error --head "$url" \
5946 --write-out "%{http_code}" --output /dev/null > code 2> log; then
6047 tryDownload "$url"
6148 if test -n "$success"; then finish; fi
+9-11
pkgs/build-support/fetchurl/default.nix
···11-{stdenv, curl}: # Note that `curl' may be `null', in case of the native stdenv.
11+{ stdenv, curl }: # Note that `curl' may be `null', in case of the native stdenv.
2233let
44···17171818 # Names of the master sites that are mirrored (i.e., "sourceforge",
1919 # "gnu", etc.).
2020- sites =
2121- if builtins ? attrNames
2222- then builtins.attrNames mirrors
2323- else [] /* backwards compatibility */;
2020+ sites = builtins.attrNames mirrors;
24212522 impureEnvVars = [
2623 # We borrow these environment variables from the caller to allow
···3532 # This variable allows the user to override hashedMirrors from the
3633 # command-line.
3734 "NIX_HASHED_MIRRORS"
3535+3636+ # This variable allows overriding the timeout for connecting to
3737+ # the hashed mirrors.
3838+ "NIX_CONNECT_TIMEOUT"
3839 ] ++ (map (site: "NIX_MIRRORS_${site}") sites);
39404041in
4141-4242+4243{ # URL to fetch.
4344 url ? ""
4445···7980 if showURLs then "urls"
8081 else if name != "" then name
8182 else baseNameOf (toString (builtins.head urls_));
8282-8383+8384 builder = ./builder.sh;
8484-8585+8586 buildInputs = [curl];
86878788 urls = urls_;
···8990 # If set, prefer the content-addressable mirrors
9091 # (http://nixos.org/tarballs) over the original URLs.
9192 preferHashedMirrors = true;
9292-9393- # Compatibility with Nix <= 0.7.
9494- id = md5;
95939694 # New-style output content requirements.
9795 outputHashAlgo = if outputHashAlgo != "" then outputHashAlgo else
+7-4
pkgs/build-support/release/nix-build.nix
···4646 header "Copying build directory to $KEEPBUILDDIR"
4747 mkdir -p $KEEPBUILDDIR
4848 cp -R $TMPDIR/* $KEEPBUILDDIR
4949- stopNest
4949+ stopNest
5050 fi
5151 fi
5252 '';
5353 }
54545555- // args //
5555+ // args //
56565757 {
5858 name = name + (if src ? version then "-" + src.version else "");
5959-5959+6060 postHook = ''
6161 . ${./functions.sh}
6262 origSrc=$src
···7575 echo "$system" > $out/nix-support/system
76767777 if [ -z "${toString doCoverageAnalysis}" ]; then
7878- echo "nix-build none $out" >> $out/nix-support/hydra-build-products
7878+ for i in $outputs; do
7979+ if [ "$i" = out ]; then j=none; else j="$i"; fi
8080+ echo "nix-build $j ''${!i}" >> $out/nix-support/hydra-build-products
8181+ done
7982 fi
8083 '';
8184
···11{ stdenv, fetchurl }:
22stdenv.mkDerivation rec {
33 name = "eina-${version}";
44- version = "1.2.0-alpha";
44+ version = "1.7.5";
55 src = fetchurl {
66 url = "http://download.enlightenment.org/releases/${name}.tar.bz2";
77- sha256 = "1vchzb34hd9z8ghh75ch7sdf90gmzzpxryk3yq8hjcdxd0zjx9yj";
77+ sha256 = "0kd4116njrbag9h459cmfpg07c4ag04z3yrsg513lpi27amch27w";
88 };
99 meta = {
1010 description = "Enlightenment's core data structure library";
+24
pkgs/desktops/e17/eio/default.nix
···11+{ stdenv, fetchurl, pkgconfig, eet, eina, ecore }:
22+stdenv.mkDerivation rec {
33+ name = "eio-${version}";
44+ version = "1.7.5";
55+ src = fetchurl {
66+ url = "http://download.enlightenment.org/releases/${name}.tar.bz2";
77+ sha256 = "1bsam5q364kc4xwfv7pql6686gj0byhk42zwjqx9ajf70l23kss6";
88+ };
99+ buildInputs = [ pkgconfig eet eina ecore ];
1010+ meta = {
1111+ description = "A library that integrates with EFL to provide efficient filesystem IO";
1212+ longDescription = ''
1313+ Eio integrates with EFL (Ecore, Eina) to provide efficient filesystem Input/Output.
1414+ It use the best techniques to achieve such purpose, like using at-variants, splice,
1515+ properly handling errors and doing it in an asynchronous fashion by means of worker
1616+ threads. It is also ported to Windows, so multi-platform.
1717+1818+ Whenever you need to list a directory, copy, move or delete files, Eio will do that
1919+ task better than you'd achieve with naive implementations, and it is easy to use.
2020+ '';
2121+ homepage = http://enlightenment.org/;
2222+ license = stdenv.lib.licenses.lgpl21;
2323+ };
2424+}
+19
pkgs/desktops/e17/elementary/default.nix
···11+{ stdenv, fetchurl, pkgconfig, eina, eet, evas, ecore, edje }:
22+stdenv.mkDerivation rec {
33+ name = "elementary-${version}";
44+ version = "1.7.5";
55+ src = fetchurl {
66+ url = "http://download.enlightenment.org/releases/${name}.tar.bz2";
77+ sha256 = "08cb4x9639xyrb8d4vzvhl6v385qjfswl717sicm7iimh5zlm2l9";
88+ };
99+ buildInputs = [ pkgconfig eina eet evas ecore edje ];
1010+ meta = {
1111+ description = "Enlightenment's core data structure library";
1212+ longDescription = ''
1313+ Enlightenment's Eina is a core data structure and common utility
1414+ library.
1515+ '';
1616+ homepage = http://enlightenment.org/;
1717+ license = stdenv.lib.licenses.lgpl21;
1818+ };
1919+}
+2-2
pkgs/desktops/e17/embryo/default.nix
···11{ stdenv, fetchurl, pkgconfig, eina }:
22stdenv.mkDerivation rec {
33 name = "embryo-${version}";
44- version = "1.2.0-alpha";
44+ version = "1.7.5";
55 src = fetchurl {
66 url = "http://download.enlightenment.org/releases/${name}.tar.bz2";
77- sha256 = "0hcjlf0rljz4zs1y5l4h0gn2gyqb1h4msfsaps8flaym4mxrvvd9";
77+ sha256 = "104fsa179w2dfg00sfnap7c3b4ixcps4crxa6yav755awssdcim9";
88 };
99 buildInputs = [ pkgconfig eina ];
1010 meta = {
+19
pkgs/desktops/e17/emotion/default.nix
···11+{ stdenv, fetchurl, pkgconfig, ecore, evas, eet, eina, edje }:
22+stdenv.mkDerivation rec {
33+ name = "emotion-${version}";
44+ version = "1.7.5";
55+ src = fetchurl {
66+ url = "http://download.enlightenment.org/releases/${name}.tar.bz2";
77+ sha256 = "1sfw8kpj2fcqymzd6q7p51xxib1n2arvjl1hnwhqkvwhlsq2b4sw";
88+ };
99+ buildInputs = [ pkgconfig ecore evas eet eina edje ];
1010+ meta = {
1111+ description = "A library to easily integrate media playback into EFL applications";
1212+ longDescription = ''
1313+ Emotion is a library to easily integrate media playback into EFL applications,
1414+ it will take care of using Ecore's main loop and video display is done using Evas.
1515+ '';
1616+ homepage = http://enlightenment.org/;
1717+ license = stdenv.lib.licenses.lgpl21;
1818+ };
1919+}
···11-From: André Draszik <andre.draszik@st.com>
22-Date: Wed, 28 Sep 2011 17:36:00 +0000 (+0100)
33-Subject: generic_stretch_blit: fix compilation due to undefined reference to DSPF_ARGBF88871
44-X-Git-Url: http://git.directfb.org/?p=core%2FDirectFB.git;a=commitdiff_plain;h=ef5e1398fe4037b63d6513e450f107fcfe91047f
55-66-generic_stretch_blit: fix compilation due to undefined reference to DSPF_ARGBF88871
77-88-../../../../DirectFB/src/gfx/generic/generic_stretch_blit.c: In function 'stretch_hvx':
99-../../../../DirectFB/src/gfx/generic/generic_stretch_blit.c:444:21: error: 'DSPF_ARGBF88871' undeclared (first use in this function)
1010-../../../../DirectFB/src/gfx/generic/generic_stretch_blit.c:444:21: note: each undeclared identifier is reported only once for each function it appears in
1111----
1212-1313-diff --git a/src/gfx/generic/generic_stretch_blit.c b/src/gfx/generic/generic_stretch_blit.c
1414-index 65076f4..6dd987b 100644
1515---- a/src/gfx/generic/generic_stretch_blit.c
1616-+++ b/src/gfx/generic/generic_stretch_blit.c
1717-@@ -441,7 +441,7 @@ stretch_hvx( CardState *state, DFBRectangle *srect, DFBRectangle *drect )
1818- }
1919- break;
2020-2121-- case DSPF_ARGBF88871:
2222-+ case DSPF_RGBAF88871:
2323- if (state->blittingflags & DSBLIT_SRC_PREMULTIPLY) {
2424- for (i=0; i<gfxs->Blut->num_entries; i++) {
2525- int alpha = entries[i].a + 1;
···11-{ stdenv, fetchurl, gfortran, tolerateCpuTimingInaccuracy ? true, shared ? false }:
11+{ stdenv, fetchurl, gfortran, tolerateCpuTimingInaccuracy ? true, shared ? false
22+, cpuConfig ? if stdenv.isi686 then "-b 32 -A 18 -V 1" else "-b 64 -A 31 -V 192"
33+}:
44+55+# Atlas detects the CPU and optimizes its build accordingly. This is great when
66+# the code is run on the same machine that built the binary, but in case of a
77+# central build farm like Hydra, this feature is dangerous because the code may
88+# be generated utilizing fancy features that users who download the binary
99+# cannot execute.
1010+#
1111+# To avoid these issues, the build is configured using the 'cpuConfig'
1212+# parameter as follows:
1313+#
1414+# | x86 CPU | x86_64 CPU |
1515+# |---------------------------------------------+------------------------|
1616+# | -b 32 | -b 64 |
1717+# | -A 18 (Pentium II) | -A 31 (Athlon K7) |
1818+# | -V 1 (No SIMD: Pentium II doesn't have SSE) | -V 192 (SSE1 and SSE2) |
1919+#
2020+# Users who want to compile a highly optimized version of ATLAS that's suitable
2121+# for their local machine can override these settings accordingly.
222323let
2424+ version = "3.10.1";
2525+426 optionalString = stdenv.lib.optionalString;
2727+ optional = stdenv.lib.optional;
528in
629730stdenv.mkDerivation {
88- name = "atlas-3.9.67";
3131+ name = "atlas-${version}";
9321033 src = fetchurl {
1111- url = mirror://sourceforge/math-atlas/atlas3.9.67.tar.bz2;
1212- sha256 = "06xxlv440z8a3qmfrh17p28girv71c6awvpw5vhpspr0pcsgk1pa";
3434+ url = "mirror://sourceforge/math-atlas/atlas${version}.tar.bz2";
3535+ sha256 = "11ncgdc7kzb2y2gqb3sgarm5saj9fr07r3h2yh2h5bja429b85d2";
1336 };
14373838+ buildInputs = [ gfortran ];
3939+4040+ # Atlas aborts the build if it detects that some kind of CPU frequency
4141+ # scaling is active on the build machine because that feature offsets the
4242+ # performance timings. We ignore that check, however, because with binaries
4343+ # being pre-built on Hydra those timings aren't accurate for the local
4444+ # machine in the first place.
4545+ patches = optional tolerateCpuTimingInaccuracy ./disable-timing-accuracy-check.patch;
4646+1547 # Configure outside of the source directory.
1648 preConfigure = '' mkdir build; cd build; configureScript=../configure; '';
17491818- # * -fPIC allows to build atlas inside shared objects, as octave does.
5050+ # * -fPIC is passed even in non-shared builds so that the ATLAS code can be
5151+ # used to inside of shared libraries, like Octave does.
1952 #
2020- # * Atlas aborts the build if it detects that some kind of CPU frequency
2121- # scaling is active on the build machine because that feature offsets the
2222- # performance timings. We ignore that check, however, because with binaries
2323- # being pre-built on Hydra those timings aren't accurate for the local
2424- # machine in the first place.
2525- # * Atlas detects the cpu and does some tricks. For example, notices the
2626- # hydra AMD Family 10h computer, and uses a SSE trick for it (bit 17 of MXCSR)
2727- # available, for what I know, only in that family. So we hardcode K7
2828- # -A 31 = Athlon K7
2929- # -A 18 = Pentium II
3030- # -V 192 = SSE1|SSE2 (Or it takes SSE3 somehow in my machine without SSE3)
3131- # -V 1 = No SIMD (Pentium II does not have any SSE)
3232- # -t 0 = No threading
3333- configureFlags = "-Fa alg -fPIC -t 0"
3434- + optionalString stdenv.isi686 " -b 32 -A 18 -V 1"
3535- + optionalString stdenv.isx86_64 " -A 31 -V 192"
3636- + optionalString tolerateCpuTimingInaccuracy " -Si cputhrchk 0"
3737- + optionalString shared " --shared "
3838- ;
3939-4040- buildInputs = [ gfortran ];
5353+ # * -t 0 disables use of multi-threading. It's not quite clear what the
5454+ # consequences of that setting are and whether it's necessary or not.
5555+ configureFlags = "-Fa alg -fPIC -t 0 ${cpuConfig}" + optionalString shared " --shared";
41564257 doCheck = true;
43584459 meta = {
4560 homepage = "http://math-atlas.sourceforge.net/";
4661 description = "Automatically Tuned Linear Algebra Software (ATLAS)";
4747- license = "GPL";
6262+ license = stdenv.lib.licenses.bsd3;
48634964 longDescription = ''
5065 The ATLAS (Automatically Tuned Linear Algebra Software) project is an ongoing
···11-From f14307932a316952fae8517c0fcb0962cd204e9a Mon Sep 17 00:00:00 2001
22-From: Michel Alexandre Salim <michel@sylvestre.me>
33-Date: Fri, 4 May 2012 10:56:38 +0700
44-Subject: [PATCH] lein-pkg: require rlwrap unconditionally, unless run inside
55- Emacs or a dumb terminal; chmod to 755 as this is an
66- executable script
77-88----
99- bin/lein-pkg | 10 ++++++----
1010- 1 file changed, 6 insertions(+), 4 deletions(-)
1111- mode change 100644 => 100755 bin/lein-pkg
1212-1313-diff --git a/bin/lein-pkg b/bin/lein-pkg
1414-old mode 100644
1515-new mode 100755
1616-index 8563da6..1b90ebe
1717---- lein-pkg.orig
1818-+++ lein-pkg
1919-@@ -3,6 +3,11 @@
2020- # This variant of the lein script is meant for downstream packagers.
2121- # It has all the cross-platform stuff stripped out as well as the
2222- # logic for running from checkouts and self-upgrading.
2323-+#
2424-+# Note to packagers:
2525-+# rlwrap is now required unless running inside Emacs or in a dumb
2626-+# terminal (this is to improve the 'lein repl' experience).
2727-+# Make sure that your packaging pulls in rlwrap as a dependency
2828-2929- export LEIN_VERSION="1.7.1"
3030-3131-@@ -103,10 +108,7 @@ fi
3232-3333- # Use rlwrap if appropriate
3434- if ([ -z $INSIDE_EMACS ] && [ "$TERM" != "dumb" ]); then
3535-- which rlwrap > /dev/null
3636-- if [ $? -eq 0 ]; then
3737-- RLWRAP="rlwrap -r -m -q '\"'" # custom quote chars
3838-- fi
3939-+ RLWRAP="rlwrap -r -m -q '\"'" # custom quote chars
4040- RLWRAP_CLJ_WORDS_FILE=${RLWRAP_CLJ_WORDS_FILE:-"${HOME}/.clj_completions"}
4141- RLWRAP_CLJ_WORDS_OPTION=""
4242- if [ -r "${RLWRAP_CLJ_WORDS_FILE}" ]; then
4343---
4444-1.7.9.5
4545-
···8899let
10101111- basename = "gdb-7.5";
1111+ basename = "gdb-7.5.1";
12121313 # Whether (cross-)building for GNU/Hurd. This is an approximation since
1414 # having `stdenv ? cross' doesn't tell us if we're building `crossDrv' and
···27272828 src = fetchurl {
2929 url = "mirror://gnu/gdb/${basename}.tar.bz2";
3030- md5 = "24a6779a9fe0260667710de1b082ef61";
3030+ sha256 = "084xs90545an51biyy4qd53hsw6p1k6arviq2wlz1a4z526q02q7";
3131 };
32323333 # I think python is not a native input, but I leave it
···11+{ stdenv, requireFile, SDL, pulseaudio, alsaLib }:
22+33+stdenv.mkDerivation rec {
44+ name = "vessel-12082012";
55+66+ goBuyItNow = ''
77+ We cannot download the full version automatically, as you require a license.
88+ Once you bought a license, you need to add your downloaded version to the nix store.
99+ You can do this by using "nix-prefetch-url file://${name}-bin" in the
1010+ directory where you saved it.
1111+ '';
1212+1313+ src = if (stdenv.isi686) then
1414+ requireFile {
1515+ message = goBuyItNow;
1616+ name = "${name}-bin";
1717+ sha256 = "1vpwcrjiln2mx43h7ib3jnccyr3chk7a5x2bw9kb4lw8ycygvg96";
1818+ } else throw "unsupported platform ${stdenv.s:ystem} only i686-linux supported for now.";
1919+2020+ phases = "installPhase";
2121+ ld_preload = ./isatty.c;
2222+2323+ libPath = stdenv.lib.makeLibraryPath [ stdenv.gcc.gcc stdenv.gcc.libc ]
2424+ + ":" + stdenv.lib.makeLibraryPath [ SDL pulseaudio alsaLib ] ;
2525+2626+ installPhase = ''
2727+ ensureDir $out/libexec/strangeloop/vessel/
2828+ ensureDir $out/bin
2929+3030+ # allow scripting of the mojoinstaller
3131+ gcc -fPIC -shared -o isatty.so $ld_preload
3232+3333+ echo @@@
3434+ echo @@@ this next step appears to hang for a while
3535+ echo @@@
3636+3737+ # if we call ld.so $(bin) we don't need to set the ELF interpreter, and save a patchelf step.
3838+ LD_PRELOAD=./isatty.so $(cat $NIX_GCC/nix-support/dynamic-linker) $src << IM_A_BOT
3939+ n
4040+ $out/libexec/strangeloop/vessel/
4141+ IM_A_BOT
4242+4343+ # use nix SDL libraries
4444+ rm $out/libexec/strangeloop/vessel/x86/libSDL*
4545+ rm $out/libexec/strangeloop/vessel/x86/libstdc++*
4646+4747+ # props to Ethan Lee (the Vessel porter) for understanding
4848+ # how $ORIGIN works in rpath. There is hope for humanity.
4949+ patchelf \
5050+ --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
5151+ --set-rpath $libPath:$out/libexec/strangeloop/vessel/x86/ \
5252+ $out/libexec/strangeloop/vessel/x86/vessel.x86
5353+5454+ # we need to libs to find their deps
5555+ for lib in $out/libexec/strangeloop/vessel/x86/lib* ; do
5656+ patchelf \
5757+ --set-rpath $libPath:$out/libexec/strangeloop/vessel/x86/ \
5858+ $lib
5959+ done
6060+6161+ cat > $out/bin/Vessel << EOW
6262+ #!/bin/sh
6363+ cd $out/libexec/strangeloop/vessel/
6464+ exec ./x86/vessel.x86
6565+ EOW
6666+6767+ chmod +x $out/bin/Vessel
6868+ '';
6969+7070+ meta = {
7171+ description = "A fluid physics based puzzle game";
7272+ longDescription = ''
7373+ Living liquid machines have overrun this world of unstoppable progress,
7474+ and it is the role of their inventor, Arkwright, to stop the chaos they are
7575+ causing. Vessel is a game about a man with the power to bring ordinary matter
7676+ to life, and all the consequences that ensue.
7777+ '';
7878+ homepage = http://www.strangeloopgames.com;
7979+ license = [ "unfree" ];
8080+ maintainers = with stdenv.lib.maintainers; [ jcumming ];
8181+ platforms = [ "i686-linux"] ;
8282+ };
8383+8484+}
+6
pkgs/games/vessel/isatty.c
···11+// We override isatty to help 'automate' installers.
22+33+// Some installers (mojoinstall) have a stdio GUI that refuses to run if you
44+// feed it a file on stdin. This should help that.
55+66+int isatty(int fd) { return 1; }
···11# General list operations.
22+with {
33+ inherit (import ./trivial.nix) deepSeq;
44+};
2536rec {
47 inherit (builtins) head tail length isList add sub lessThan;
···220223 ++ zipTwoLists (tail xs) (tail ys)
221224 else [];
222225226226+ deepSeqList = xs: y: if any (x: deepSeq x false) xs then y else y;
223227}
+13
pkgs/lib/trivial.nix
···11+with {
22+ inherit (import ./lists.nix) deepSeqList;
33+ inherit (import ./attrsets.nix) deepSeqAttrs;
44+};
55+16rec {
2738 # Identity function.
···2227 # evaluation of its first argument.
2328 seq = x: y: if x == null then y else y;
24293030+ # Like `seq', but recurses into lists and attribute sets to force evaluation
3131+ # of all list elements/attributes.
3232+ deepSeq = x: y:
3333+ if builtins.isList x
3434+ then deepSeqList x y
3535+ else if builtins.isAttrs x
3636+ then deepSeqAttrs x y
3737+ else seq x y;
2538}
+8
pkgs/lib/types.nix
···6868 merge = lib.concatStrings;
6969 };
70707171+ # Like ‘string’, but add newlines between every value. Useful for
7272+ # configuration file contents.
7373+ lines = mkOptionType {
7474+ name = "string";
7575+ check = lib.traceValIfNot builtins.isString;
7676+ merge = lib.concatStringsSep "\n";
7777+ };
7878+7179 envVar = mkOptionType {
7280 name = "environment variable";
7381 inherit (string) check;
+1-1
pkgs/misc/cups/default.nix
···4343 description = "A standards-based printing system for UNIX";
4444 license = stdenv.lib.licenses.gpl2; # actually LGPL for the library and GPL for the rest
4545 maintainers = [ stdenv.lib.maintainers.urkud stdenv.lib.maintainers.simons ];
4646- platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
4646+ platforms = stdenv.lib.platforms.linux;
4747 };
4848}
···77assert stdenv.gcc.gcc != null;
8899stdenv.mkDerivation rec {
1010- name = "wine-${meta.version}";
1010+ version = "1.5.23";
1111+ name = "wine-${version}";
11121213 src = fetchurl {
1314 url = "mirror://sourceforge/wine/${name}.tar.bz2";
1414- sha256 = "0l5kr3iq1lkv3gcw8ljzfjcfnsh9b5crdd4i0dzwdk1i3bfw2xxc";
1515+ sha256 = "1wgs2bdl3sn3j0za7fk9zfjlii1x6qkvmyw4jxzz1mfw6nizswzr";
1516 };
16171718 gecko = fetchurl {
1818- url = "mirror://sourceforge/wine/wine_gecko-1.5-x86.msi";
1919- sha256 = "2e372a1b87ff2a22ad5127400ece4b09e55591d9f84e00bb562d294898a49b5c";
1919+ url = "mirror://sourceforge/wine/wine_gecko-1.9-x86.msi";
2020+ sha256 = "10p7djsf85xjk8rzg3hgw5fskrn8402y2aijy701xwm4hy9ga79g";
2021 };
21222223 buildInputs = [
···4647 enableParallelBuilding = true;
47484849 meta = {
4949- version = "1.5.21";
5050 homepage = "http://www.winehq.org/";
5151 license = "LGPL";
5252 description = "An Open Source implementation of the Windows API on top of X, OpenGL, and Unix";
+28
pkgs/misc/emulators/wine/winetricks.nix
···11+{ stdenv, fetchsvn, wine, perl, which, coreutils, zenity, curl, cabextract, unzip, p7zip } :
22+33+stdenv.mkDerivation rec {
44+ rev = "939";
55+ name = "winetricks-${rev}";
66+77+ src = fetchsvn {
88+ url = "http://winetricks.googlecode.com/svn/trunk";
99+ inherit rev;
1010+ };
1111+1212+ buildInputs = [ perl which ];
1313+1414+ pathAdd = stdenv.lib.concatStringsSep "/bin:" # coreutils is for sha1sum
1515+ [ wine perl which coreutils zenity curl cabextract unzip p7zip ]
1616+ + "/bin";
1717+1818+ patch = ./winetricks.patch;
1919+2020+ builder = ./build_winetricks.sh;
2121+2222+ meta = {
2323+ description = "A script to install DLLs needed to work around problems in Wine";
2424+ license = "LGPLv2.1";
2525+ homepage = http://code.google.com/p/winetricks/;
2626+ };
2727+}
2828+
+21
pkgs/misc/emulators/wine/winetricks.patch
···11+--- upstream-winetricks 2013-01-12 13:26:12.333076904 -0800
22++++ winetricks 2013-01-12 14:37:39.675092352 -0800
33+@@ -3398,7 +3398,7 @@
44+ WINETRICKS_OPT_SHAREDPREFIX=${WINETRICKS_OPT_SHAREDPREFIX:-0}
55+66+ # Mac folks tend to not have sha1sum, but we can make do with openssl
77+- if [ -x "`which sha1sum 2>/dev/null`" ]
88++ if [ -e "`which sha1sum 2>/dev/null`" ]
99+ then
1010+ WINETRICKS_SHA1SUM="sha1sum"
1111+ elif [ -x "`which openssl 2>/dev/null`" ]
1212+@@ -3628,7 +3628,7 @@
1313+ if ! test "$WINETRICKS_LIB"
1414+ then
1515+ WINETRICKS_SRCDIR=`dirname "$0"`
1616+- WINETRICKS_SRCDIR=`cd "$WINETRICKS_SRCDIR"; /bin/pwd`
1717++ WINETRICKS_SRCDIR=`cd "$WINETRICKS_SRCDIR"; pwd`
1818+1919+ # Which GUI helper to use (none/zenity/kdialog). See winetricks_detect_gui.
2020+ WINETRICKS_GUI=none
2121+
···11-{ stdenv, fetchurl, extraConfig ? "", ... } @ args:
22-33-let
44- configWithPlatform = kernelPlatform:
55- ''
66- # Don't include any debug features.
77- DEBUG_KERNEL n
88-99- # Support drivers that need external firmware.
1010- STANDALONE n
1111-1212- # Make /proc/config.gz available.
1313- IKCONFIG_PROC y
1414-1515- # Optimize with -O2, not -Os.
1616- CC_OPTIMIZE_FOR_SIZE n
1717-1818- # Enable the kernel's built-in memory tester.
1919- MEMTEST y
2020-2121- # Include the CFQ I/O scheduler in the kernel, rather than as a
2222- # module, so that the initrd gets a good I/O scheduler.
2323- IOSCHED_CFQ y
2424-2525- # Disable some expensive (?) features.
2626- FTRACE n
2727- KPROBES n
2828- NUMA? n
2929- PM_TRACE_RTC n
3030-3131- # Enable various subsystems.
3232- ACCESSIBILITY y # Accessibility support
3333- AUXDISPLAY y # Auxiliary Display support
3434- DONGLE y # Serial dongle support
3535- HIPPI y
3636- MTD_COMPLEX_MAPPINGS y # needed for many devices
3737- NET_POCKET y # enable pocket and portable adapters
3838- SCSI_LOWLEVEL y # enable lots of SCSI devices
3939- SCSI_LOWLEVEL_PCMCIA y
4040- SPI y # needed for many devices
4141- SPI_MASTER y
4242- WAN y
4343-4444- # Networking options.
4545- IP_PNP n
4646- IPV6_PRIVACY y
4747- NETFILTER_ADVANCED y
4848- IP_VS_PROTO_TCP y
4949- IP_VS_PROTO_UDP y
5050- IP_VS_PROTO_ESP y
5151- IP_VS_PROTO_AH y
5252- IP_DCCP_CCID3 n # experimental
5353- CLS_U32_PERF y
5454- CLS_U32_MARK y
5555-5656- # Wireless networking.
5757- IPW2100_MONITOR y # support promiscuous mode
5858- IPW2200_MONITOR y # support promiscuous mode
5959- IWLWIFI_LEDS? y
6060- IWLWIFI_SPECTRUM_MEASUREMENT y
6161- IWL3945_SPECTRUM_MEASUREMENT y
6262- IWL4965 y # Intel Wireless WiFi 4965AGN
6363- IWL5000 y # Intel Wireless WiFi 5000AGN
6464- HOSTAP_FIRMWARE y # Support downloading firmware images with Host AP driver
6565- HOSTAP_FIRMWARE_NVRAM y
6666-6767- # Some settings to make sure that fbcondecor works - in particular,
6868- # disable tileblitting and the drivers that need it.
6969-7070- # Enable various FB devices.
7171- FB y
7272- FB_EFI y
7373- FB_NVIDIA_I2C y # Enable DDC Support
7474- FB_RIVA_I2C y
7575- FB_ATY_CT y # Mach64 CT/VT/GT/LT (incl. 3D RAGE) support
7676- FB_ATY_GX y # Mach64 GX support
7777- FB_SAVAGE_I2C y
7878- FB_SAVAGE_ACCEL y
7979- FB_SIS_300 y
8080- FB_SIS_315 y
8181- FB_3DFX_ACCEL y
8282- FB_GEODE y
8383-8484- # Video configuration
8585- # The intel drivers already require KMS
8686- DRM_I915_KMS y
8787-8888- # Sound.
8989- SND_AC97_POWER_SAVE y # AC97 Power-Saving Mode
9090- SND_HDA_INPUT_BEEP y # Support digital beep via input layer
9191- SND_USB_CAIAQ_INPUT y
9292- PSS_MIXER y # Enable PSS mixer (Beethoven ADSP-16 and other compatible)
9393-9494- # USB serial devices.
9595- USB_SERIAL_GENERIC y # USB Generic Serial Driver
9696- USB_SERIAL_KEYSPAN_MPR y # include firmware for various USB serial devices
9797- USB_SERIAL_KEYSPAN_USA28 y
9898- USB_SERIAL_KEYSPAN_USA28X y
9999- USB_SERIAL_KEYSPAN_USA28XA y
100100- USB_SERIAL_KEYSPAN_USA28XB y
101101- USB_SERIAL_KEYSPAN_USA19 y
102102- USB_SERIAL_KEYSPAN_USA18X y
103103- USB_SERIAL_KEYSPAN_USA19W y
104104- USB_SERIAL_KEYSPAN_USA19QW y
105105- USB_SERIAL_KEYSPAN_USA19QI y
106106- USB_SERIAL_KEYSPAN_USA49W y
107107- USB_SERIAL_KEYSPAN_USA49WLC y
108108-109109- # Filesystem options - in particular, enable extended attributes and
110110- # ACLs for all filesystems that support them.
111111- EXT2_FS_XATTR y # Ext2 extended attributes
112112- EXT2_FS_POSIX_ACL y # Ext2 POSIX Access Control Lists
113113- EXT2_FS_SECURITY y # Ext2 Security Labels
114114- EXT2_FS_XIP y # Ext2 execute in place support
115115- EXT4_FS_POSIX_ACL y
116116- EXT4_FS_SECURITY y
117117- REISERFS_FS_XATTR y
118118- REISERFS_FS_POSIX_ACL y
119119- REISERFS_FS_SECURITY y
120120- JFS_POSIX_ACL y
121121- JFS_SECURITY y
122122- XFS_QUOTA y
123123- XFS_POSIX_ACL y
124124- XFS_RT y # XFS Realtime subvolume support
125125- OCFS2_DEBUG_MASKLOG n
126126- OCFS2_FS_POSIX_ACL y
127127- BTRFS_FS_POSIX_ACL y
128128- UBIFS_FS_XATTR y
129129- UBIFS_FS_ADVANCED_COMPR y
130130- NFSD_V2_ACL y
131131- NFSD_V3 y
132132- NFSD_V3_ACL y
133133- NFSD_V4 y
134134- CIFS_XATTR y
135135- CIFS_POSIX y
136136-137137- # Security related features.
138138- STRICT_DEVMEM y # Filter access to /dev/mem
139139- SECURITY_SELINUX_BOOTPARAM_VALUE 0 # disable SELinux by default
140140-141141- # Misc. options.
142142- 8139TOO_8129 y
143143- 8139TOO_PIO n # PIO is slower
144144- AIC79XX_DEBUG_ENABLE n
145145- AIC7XXX_DEBUG_ENABLE n
146146- AIC94XX_DEBUG n
147147- B43_PCMCIA y
148148- BLK_DEV_BSG n
149149- BLK_DEV_CMD640_ENHANCED y # CMD640 enhanced support
150150- BLK_DEV_IDEACPI y # IDE ACPI support
151151- BLK_DEV_INTEGRITY y
152152- BSD_PROCESS_ACCT_V3 y
153153- BT_HCIUART_BCSP y
154154- BT_HCIUART_H4 y # UART (H4) protocol support
155155- BT_HCIUART_LL y
156156- BT_RFCOMM_TTY y # RFCOMM TTY support
157157- CPU_FREQ_DEBUG n
158158- CRASH_DUMP n
159159- DMAR? n # experimental
160160- DVB_DYNAMIC_MINORS y # we use udev
161161- FUSION y # Fusion MPT device support
162162- IDE_GD_ATAPI y # ATAPI floppy support
163163- IRDA_ULTRA y # Ultra (connectionless) protocol
164164- JOYSTICK_IFORCE_232 y # I-Force Serial joysticks and wheels
165165- JOYSTICK_IFORCE_USB y # I-Force USB joysticks and wheels
166166- JOYSTICK_XPAD_FF y # X-Box gamepad rumble support
167167- JOYSTICK_XPAD_LEDS y # LED Support for Xbox360 controller 'BigX' LED
168168- KALLSYMS_EXTRA_PASS n
169169- LDM_PARTITION y # Windows Logical Disk Manager (Dynamic Disk) support
170170- LEDS_TRIGGER_IDE_DISK y # LED IDE Disk Trigger
171171- LOGIRUMBLEPAD2_FF y # Logitech Rumblepad 2 force feedback
172172- LOGO n # not needed
173173- MEDIA_ATTACH y
174174- MEGARAID_NEWGEN y
175175- MICROCODE_AMD y
176176- MODVERSIONS y
177177- MOUSE_PS2_ELANTECH y # Elantech PS/2 protocol extension
178178- MTRR_SANITIZER y
179179- NET_FC y # Fibre Channel driver support
180180- PCI_LEGACY y
181181- PPP_MULTILINK y # PPP multilink support
182182- REGULATOR y # Voltage and Current Regulator Support
183183- SCSI_LOGGING y # SCSI logging facility
184184- SERIAL_8250 y # 8250/16550 and compatible serial support
185185- SLIP_COMPRESSED y # CSLIP compressed headers
186186- SLIP_SMART y
187187- THERMAL_HWMON y # Hardware monitoring support
188188- USB_DEBUG n
189189- USB_EHCI_ROOT_HUB_TT y # Root Hub Transaction Translators
190190- X86_CHECK_BIOS_CORRUPTION y
191191- X86_MCE y
192192-193193- # Enable Xen Dom0 support.
194194- XEN_DOM0 y
195195- XEN_PCI_PASSTHROUGH y
196196-197197- ${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""}
198198- ${extraConfig}
199199- '';
200200-in
201201-202202-import ./generic.nix (
203203-204204- rec {
205205- version = "2.6.32.24-xen-179eca5";
206206- localVersion = "-xen-179eca5";
207207-208208- src = fetchurl {
209209- url = "http://nixos.org/tarballs/linux-${version}.tar.bz2";
210210- sha256 = "09a7xh4hvw0hzq67dqdxn8p4rkd907937xvshx30rg4ab6717scf";
211211- };
212212-213213- config = configWithPlatform stdenv.platform;
214214- configCross = configWithPlatform stdenv.cross.platform;
215215-216216- features.iwlwifi = true;
217217-218218- meta.description = "Linux kernel suitable for Xen Domain 0";
219219- }
220220-221221- // removeAttrs args ["extraConfig"]
222222-)
···11-args @ { stdenv, fetchurl, extraConfig ? ""
22-, perl, mktemp, module_init_tools
33-, ... }:
44-55-let
66- configWithPlatform = kernelPlatform :
77- ''
88- # Power management 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
2222-2323- # Support drivers that need external firmware.
2424- STANDALONE n
2525-2626- # Make /proc/config.gz available.
2727- IKCONFIG_PROC y
2828-2929- # Optimize with -O2, not -Os.
3030- CC_OPTIMIZE_FOR_SIZE n
3131-3232- # Enable the kernel's built-in memory tester.
3333- MEMTEST y
3434-3535- # Include the CFQ I/O scheduler in the kernel, rather than as a
3636- # module, so that the initrd gets a good I/O scheduler.
3737- IOSCHED_CFQ y
3838- BLK_CGROUP y # required by CFQ
3939-4040- # Disable some expensive (?) features.
4141- FTRACE n
4242- KPROBES n
4343- NUMA? n
4444- PM_TRACE_RTC n
4545-4646- # Enable various subsystems.
4747- ACCESSIBILITY y # Accessibility support
4848- AUXDISPLAY y # Auxiliary Display support
4949- DONGLE y # Serial dongle support
5050- HIPPI y
5151- MTD_COMPLEX_MAPPINGS y # needed for many devices
5252- NET_POCKET y # enable pocket and portable adapters
5353- SCSI_LOWLEVEL y # enable lots of SCSI devices
5454- SCSI_LOWLEVEL_PCMCIA y
5555- SPI y # needed for many devices
5656- SPI_MASTER y
5757- WAN y
5858-5959- # Networking options.
6060- IP_PNP n
6161- IPV6_PRIVACY y
6262- NETFILTER_ADVANCED y
6363- IP_VS_PROTO_TCP y
6464- IP_VS_PROTO_UDP y
6565- IP_VS_PROTO_ESP y
6666- IP_VS_PROTO_AH y
6767- IP_DCCP_CCID3 n # experimental
6868- CLS_U32_PERF y
6969- CLS_U32_MARK y
7070-7171- # Wireless networking.
7272- IPW2100_MONITOR y # support promiscuous mode
7373- IPW2200_MONITOR y # support promiscuous mode
7474- HOSTAP_FIRMWARE y # Support downloading firmware images with Host AP driver
7575- HOSTAP_FIRMWARE_NVRAM y
7676- ATH9K_PCI y # Detect Atheros AR9xxx cards on PCI(e) bus
7777- ATH9K_AHB y # Ditto, AHB bus
7878-7979- # Some settings to make sure that fbcondecor works - in particular,
8080- # disable tileblitting and the drivers that need it.
8181-8282- # Enable various FB devices.
8383- FB y
8484- FB_EFI y
8585- FB_NVIDIA_I2C y # Enable DDC Support
8686- FB_RIVA_I2C y
8787- FB_ATY_CT y # Mach64 CT/VT/GT/LT (incl. 3D RAGE) support
8888- FB_ATY_GX y # Mach64 GX support
8989- FB_SAVAGE_I2C y
9090- FB_SAVAGE_ACCEL y
9191- FB_SIS_300 y
9292- FB_SIS_315 y
9393- FB_3DFX_ACCEL y
9494- FB_GEODE y
9595-9696- # Video configuration
9797- # Enable KMS for devices whose X.org driver supports it.
9898- DRM_I915_KMS y
9999- DRM_RADEON_KMS y
100100- # Hybrid graphics support
101101- VGA_SWITCHEROO y
102102-103103- # Sound.
104104- SND_AC97_POWER_SAVE y # AC97 Power-Saving Mode
105105- SND_HDA_INPUT_BEEP y # Support digital beep via input layer
106106- SND_USB_CAIAQ_INPUT y
107107- PSS_MIXER y # Enable PSS mixer (Beethoven ADSP-16 and other compatible)
108108-109109- # USB serial devices.
110110- USB_SERIAL_GENERIC y # USB Generic Serial Driver
111111- USB_SERIAL_KEYSPAN_MPR y # include firmware for various USB serial devices
112112- USB_SERIAL_KEYSPAN_USA28 y
113113- USB_SERIAL_KEYSPAN_USA28X y
114114- USB_SERIAL_KEYSPAN_USA28XA y
115115- USB_SERIAL_KEYSPAN_USA28XB y
116116- USB_SERIAL_KEYSPAN_USA19 y
117117- USB_SERIAL_KEYSPAN_USA18X y
118118- USB_SERIAL_KEYSPAN_USA19W y
119119- USB_SERIAL_KEYSPAN_USA19QW y
120120- USB_SERIAL_KEYSPAN_USA19QI y
121121- USB_SERIAL_KEYSPAN_USA49W y
122122- USB_SERIAL_KEYSPAN_USA49WLC y
123123-124124- # Filesystem options - in particular, enable extended attributes and
125125- # ACLs for all filesystems that support them.
126126- EXT2_FS_XATTR y # Ext2 extended attributes
127127- EXT2_FS_POSIX_ACL y # Ext2 POSIX Access Control Lists
128128- EXT2_FS_SECURITY y # Ext2 Security Labels
129129- EXT2_FS_XIP y # Ext2 execute in place support
130130- EXT4_FS_POSIX_ACL y
131131- EXT4_FS_SECURITY y
132132- REISERFS_FS_XATTR y
133133- REISERFS_FS_POSIX_ACL y
134134- REISERFS_FS_SECURITY y
135135- JFS_POSIX_ACL y
136136- JFS_SECURITY y
137137- XFS_QUOTA y
138138- XFS_POSIX_ACL y
139139- XFS_RT y # XFS Realtime subvolume support
140140- OCFS2_DEBUG_MASKLOG n
141141- BTRFS_FS_POSIX_ACL y
142142- UBIFS_FS_XATTR y
143143- UBIFS_FS_ADVANCED_COMPR y
144144- NFSD_V2_ACL y
145145- NFSD_V3 y
146146- NFSD_V3_ACL y
147147- NFSD_V4 y
148148- CIFS_XATTR y
149149- CIFS_POSIX y
150150-151151- # Security related features.
152152- STRICT_DEVMEM y # Filter access to /dev/mem
153153- SECURITY_SELINUX_BOOTPARAM_VALUE 0 # disable SELinux by default
154154-155155- # Misc. options.
156156- 8139TOO_8129 y
157157- 8139TOO_PIO n # PIO is slower
158158- AIC79XX_DEBUG_ENABLE n
159159- AIC7XXX_DEBUG_ENABLE n
160160- AIC94XX_DEBUG n
161161- B43_PCMCIA y
162162- BLK_DEV_CMD640_ENHANCED y # CMD640 enhanced support
163163- BLK_DEV_IDEACPI y # IDE ACPI support
164164- BLK_DEV_INTEGRITY y
165165- BSD_PROCESS_ACCT_V3 y
166166- BT_HCIUART_BCSP y
167167- BT_HCIUART_H4 y # UART (H4) protocol support
168168- BT_HCIUART_LL y
169169- BT_L2CAP y
170170- BT_SCO y # audio support
171171- BT_RFCOMM m
172172- BT_RFCOMM_TTY y # RFCOMM TTY support
173173- CRASH_DUMP n
174174- DMAR? n # experimental
175175- DVB_DYNAMIC_MINORS y # we use udev
176176- FUSION y # Fusion MPT device support
177177- IDE_GD_ATAPI y # ATAPI floppy support
178178- IRDA_ULTRA y # Ultra (connectionless) protocol
179179- JOYSTICK_IFORCE_232 y # I-Force Serial joysticks and wheels
180180- JOYSTICK_IFORCE_USB y # I-Force USB joysticks and wheels
181181- JOYSTICK_XPAD_FF y # X-Box gamepad rumble support
182182- JOYSTICK_XPAD_LEDS y # LED Support for Xbox360 controller 'BigX' LED
183183- LDM_PARTITION y # Windows Logical Disk Manager (Dynamic Disk) support
184184- LEDS_TRIGGER_IDE_DISK y # LED IDE Disk Trigger
185185- LOGIRUMBLEPAD2_FF y # Logitech Rumblepad 2 force feedback
186186- LOGO n # not needed
187187- MEDIA_ATTACH y
188188- MEGARAID_NEWGEN y
189189- MICROCODE_AMD y
190190- MODVERSIONS y
191191- MOUSE_PS2_ELANTECH y # Elantech PS/2 protocol extension
192192- MTRR_SANITIZER y
193193- NET_FC y # Fibre Channel driver support
194194- PPP_MULTILINK y # PPP multilink support
195195- REGULATOR y # Voltage and Current Regulator Support
196196- SCSI_LOGGING y # SCSI logging facility
197197- SERIAL_8250 y # 8250/16550 and compatible serial support
198198- SLIP_COMPRESSED y # CSLIP compressed headers
199199- SLIP_SMART y
200200- THERMAL_HWMON y # Hardware monitoring support
201201- USB_DEBUG n
202202- USB_EHCI_ROOT_HUB_TT y # Root Hub Transaction Translators
203203- X86_CHECK_BIOS_CORRUPTION y
204204- X86_MCE y
205205-206206- # Linux Containers
207207- RT_GROUP_SCHED? y
208208- CGROUP_DEVICE? y
209209- CGROUP_MEM_RES_CTLR? y
210210- CGROUP_MEM_RES_CTLR_SWAP? y
211211- DEVPTS_MULTIPLE_INSTANCES? y
212212-213213- # Enable staging drivers. These are somewhat experimental, but
214214- # they generally don't hurt.
215215- STAGING y
216216-217217- # PROC_EVENTS requires that the netlink connector is not built
218218- # as a module. This is required by libcgroup's cgrulesengd.
219219- CONNECTOR y
220220- PROC_EVENTS y
221221-222222- # Devtmpfs support.
223223- DEVTMPFS y
224224-225225- ${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""}
226226- ${extraConfig}
227227- '';
228228-in
229229-230230-import ./generic.nix (
231231-232232- rec {
233233- version = "3.1.10";
234234-235235- preConfigure = ''
236236- substituteInPlace scripts/depmod.sh --replace '-b "$INSTALL_MOD_PATH"' ""
237237- '';
238238-239239- src = fetchurl {
240240- url = "mirror://kernel/linux/kernel/v3.x/linux-${version}.tar.bz2";
241241- sha256 = "1vcpbh7wnc9smw2l5ci27a5p0rgmc1a5dc6a1aljm6f6wcfic8lz";
242242- };
243243-244244- config = configWithPlatform stdenv.platform;
245245- configCross = configWithPlatform stdenv.cross.platform;
246246-247247- features.iwlwifi = true;
248248- }
249249-250250- // removeAttrs args ["extraConfig"]
251251-)
+4-2
pkgs/os-specific/linux/kernel/linux-3.2.nix
···146146 NFSD_V3 y
147147 NFSD_V3_ACL y
148148 NFSD_V4 y
149149+ NFS_FSCACHE y
149150 CIFS_XATTR y
150151 CIFS_POSIX y
152152+ CIFS_FSCACHE y
151153152154 # Security related features.
153155 STRICT_DEVMEM y # Filter access to /dev/mem
···237239import ./generic.nix (
238240239241 rec {
240240- version = "3.2.37";
242242+ version = "3.2.38";
241243 testing = false;
242244243245 modDirVersion = version;
···248250249251 src = fetchurl {
250252 url = "mirror://kernel/linux/kernel/v3.0/${if testing then "testing/" else ""}linux-${version}.tar.xz";
251251- sha256 = "1h8lx0gvb1q962lghjpixa6q89k4yrgvpiw8hplb3w2jicqs4948";
253253+ sha256 = "10hm4cy56xjl5ckv3jj3grw31qfhwrgia0wq71c34dw0mv3bix8w";
252254 };
253255254256 config = configWithPlatform stdenv.platform;
-260
pkgs/os-specific/linux/kernel/linux-3.3.nix
···11-args @ { stdenv, fetchurl, extraConfig ? ""
22-, perl, mktemp, module_init_tools
33-, ... }:
44-55-let
66- configWithPlatform = kernelPlatform :
77- ''
88- # Power management 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
2222-2323- # Support drivers that need external firmware.
2424- STANDALONE n
2525-2626- # Make /proc/config.gz available.
2727- IKCONFIG_PROC y
2828-2929- # Optimize with -O2, not -Os.
3030- CC_OPTIMIZE_FOR_SIZE n
3131-3232- # Enable the kernel's built-in memory tester.
3333- MEMTEST y
3434-3535- # Include the CFQ I/O scheduler in the kernel, rather than as a
3636- # module, so that the initrd gets a good I/O scheduler.
3737- IOSCHED_CFQ y
3838- BLK_CGROUP y # required by CFQ
3939-4040- # Enable NUMA.
4141- NUMA? y
4242-4343- # Disable some expensive (?) features.
4444- FTRACE n
4545- KPROBES n
4646- PM_TRACE_RTC n
4747-4848- # Enable various subsystems.
4949- ACCESSIBILITY y # Accessibility support
5050- AUXDISPLAY y # Auxiliary Display support
5151- DONGLE y # Serial dongle support
5252- HIPPI? y
5353- MTD_COMPLEX_MAPPINGS y # needed for many devices
5454- SCSI_LOWLEVEL y # enable lots of SCSI devices
5555- SCSI_LOWLEVEL_PCMCIA y
5656- SPI y # needed for many devices
5757- SPI_MASTER y
5858- WAN y
5959-6060- # Networking options.
6161- IP_PNP n
6262- IPV6_PRIVACY y
6363- NETFILTER_ADVANCED y
6464- IP_VS_PROTO_TCP y
6565- IP_VS_PROTO_UDP y
6666- IP_VS_PROTO_ESP y
6767- IP_VS_PROTO_AH y
6868- IP_DCCP_CCID3 n # experimental
6969- CLS_U32_PERF y
7070- CLS_U32_MARK y
7171-7272- # Wireless networking.
7373- IPW2100_MONITOR y # support promiscuous mode
7474- IPW2200_MONITOR y # support promiscuous mode
7575- HOSTAP_FIRMWARE y # Support downloading firmware images with Host AP driver
7676- HOSTAP_FIRMWARE_NVRAM y
7777- ATH9K_PCI y # Detect Atheros AR9xxx cards on PCI(e) bus
7878- ATH9K_AHB y # Ditto, AHB bus
7979-8080- # Some settings to make sure that fbcondecor works - in particular,
8181- # disable tileblitting and the drivers that need it.
8282-8383- # Enable various FB devices.
8484- FB y
8585- FB_EFI y
8686- FB_NVIDIA_I2C y # Enable DDC Support
8787- FB_RIVA_I2C y
8888- FB_ATY_CT y # Mach64 CT/VT/GT/LT (incl. 3D RAGE) support
8989- FB_ATY_GX y # Mach64 GX support
9090- FB_SAVAGE_I2C y
9191- FB_SAVAGE_ACCEL y
9292- FB_SIS_300 y
9393- FB_SIS_315 y
9494- FB_3DFX_ACCEL y
9595- FB_GEODE y
9696-9797- # Video configuration
9898- # Enable KMS for devices whose X.org driver supports it.
9999- DRM_I915_KMS y
100100- DRM_RADEON_KMS y
101101- # Hybrid graphics support
102102- VGA_SWITCHEROO y
103103-104104- # Sound.
105105- SND_AC97_POWER_SAVE y # AC97 Power-Saving Mode
106106- SND_HDA_INPUT_BEEP y # Support digital beep via input layer
107107- SND_USB_CAIAQ_INPUT y
108108- PSS_MIXER y # Enable PSS mixer (Beethoven ADSP-16 and other compatible)
109109-110110- # USB serial devices.
111111- USB_SERIAL_GENERIC y # USB Generic Serial Driver
112112- USB_SERIAL_KEYSPAN_MPR y # include firmware for various USB serial devices
113113- USB_SERIAL_KEYSPAN_USA28 y
114114- USB_SERIAL_KEYSPAN_USA28X y
115115- USB_SERIAL_KEYSPAN_USA28XA y
116116- USB_SERIAL_KEYSPAN_USA28XB y
117117- USB_SERIAL_KEYSPAN_USA19 y
118118- USB_SERIAL_KEYSPAN_USA18X y
119119- USB_SERIAL_KEYSPAN_USA19W y
120120- USB_SERIAL_KEYSPAN_USA19QW y
121121- USB_SERIAL_KEYSPAN_USA19QI y
122122- USB_SERIAL_KEYSPAN_USA49W y
123123- USB_SERIAL_KEYSPAN_USA49WLC y
124124-125125- # Filesystem options - in particular, enable extended attributes and
126126- # ACLs for all filesystems that support them.
127127- EXT2_FS_XATTR y # Ext2 extended attributes
128128- EXT2_FS_POSIX_ACL y # Ext2 POSIX Access Control Lists
129129- EXT2_FS_SECURITY y # Ext2 Security Labels
130130- EXT2_FS_XIP y # Ext2 execute in place support
131131- EXT4_FS_POSIX_ACL y
132132- EXT4_FS_SECURITY y
133133- REISERFS_FS_XATTR y
134134- REISERFS_FS_POSIX_ACL y
135135- REISERFS_FS_SECURITY y
136136- JFS_POSIX_ACL y
137137- JFS_SECURITY y
138138- XFS_QUOTA y
139139- XFS_POSIX_ACL y
140140- XFS_RT y # XFS Realtime subvolume support
141141- OCFS2_DEBUG_MASKLOG n
142142- BTRFS_FS_POSIX_ACL y
143143- UBIFS_FS_XATTR y
144144- UBIFS_FS_ADVANCED_COMPR y
145145- NFSD_V2_ACL y
146146- NFSD_V3 y
147147- NFSD_V3_ACL y
148148- NFSD_V4 y
149149- CIFS_XATTR y
150150- CIFS_POSIX y
151151-152152- # Security related features.
153153- STRICT_DEVMEM y # Filter access to /dev/mem
154154- SECURITY_SELINUX_BOOTPARAM_VALUE 0 # disable SELinux by default
155155-156156- # Misc. options.
157157- 8139TOO_8129 y
158158- 8139TOO_PIO n # PIO is slower
159159- AIC79XX_DEBUG_ENABLE n
160160- AIC7XXX_DEBUG_ENABLE n
161161- AIC94XX_DEBUG n
162162- B43_PCMCIA y
163163- BLK_DEV_CMD640_ENHANCED y # CMD640 enhanced support
164164- BLK_DEV_IDEACPI y # IDE ACPI support
165165- BLK_DEV_INTEGRITY y
166166- BSD_PROCESS_ACCT_V3 y
167167- BT_HCIUART_BCSP y
168168- BT_HCIUART_H4 y # UART (H4) protocol support
169169- BT_HCIUART_LL y
170170- BT_RFCOMM m
171171- BT_RFCOMM_TTY y # RFCOMM TTY support
172172- CRASH_DUMP n
173173- DMAR? n # experimental
174174- DVB_DYNAMIC_MINORS y # we use udev
175175- EFI_STUB y # EFI bootloader in the bzImage itself
176176- FUSION y # Fusion MPT device support
177177- IDE_GD_ATAPI y # ATAPI floppy support
178178- IRDA_ULTRA y # Ultra (connectionless) protocol
179179- JOYSTICK_IFORCE_232 y # I-Force Serial joysticks and wheels
180180- JOYSTICK_IFORCE_USB y # I-Force USB joysticks and wheels
181181- JOYSTICK_XPAD_FF y # X-Box gamepad rumble support
182182- JOYSTICK_XPAD_LEDS y # LED Support for Xbox360 controller 'BigX' LED
183183- LDM_PARTITION y # Windows Logical Disk Manager (Dynamic Disk) support
184184- LEDS_TRIGGER_IDE_DISK y # LED IDE Disk Trigger
185185- LOGIRUMBLEPAD2_FF y # Logitech Rumblepad 2 force feedback
186186- LOGO n # not needed
187187- MEDIA_ATTACH y
188188- MEGARAID_NEWGEN y
189189- MICROCODE_AMD y
190190- MODVERSIONS y
191191- MOUSE_PS2_ELANTECH y # Elantech PS/2 protocol extension
192192- MTRR_SANITIZER y
193193- NET_FC y # Fibre Channel driver support
194194- PPP_MULTILINK y # PPP multilink support
195195- REGULATOR y # Voltage and Current Regulator Support
196196- SCSI_LOGGING y # SCSI logging facility
197197- SERIAL_8250 y # 8250/16550 and compatible serial support
198198- SLIP_COMPRESSED y # CSLIP compressed headers
199199- SLIP_SMART y
200200- THERMAL_HWMON y # Hardware monitoring support
201201- USB_DEBUG n
202202- USB_EHCI_ROOT_HUB_TT y # Root Hub Transaction Translators
203203- X86_CHECK_BIOS_CORRUPTION y
204204- X86_MCE y
205205-206206- # Linux Containers
207207- RT_GROUP_SCHED? y
208208- CGROUP_DEVICE? y
209209- CGROUP_MEM_RES_CTLR? y
210210- CGROUP_MEM_RES_CTLR_SWAP? y
211211- DEVPTS_MULTIPLE_INSTANCES? y
212212-213213- # Enable staging drivers. These are somewhat experimental, but
214214- # they generally don't hurt.
215215- STAGING y
216216-217217- # PROC_EVENTS requires that the netlink connector is not built
218218- # as a module. This is required by libcgroup's cgrulesengd.
219219- CONNECTOR y
220220- PROC_EVENTS y
221221-222222- # Tracing
223223- FTRACE y
224224- FUNCTION_TRACER y
225225- FTRACE_SYSCALLS y
226226- SCHED_TRACER y
227227-228228- # Devtmpfs support.
229229- DEVTMPFS y
230230-231231- ${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""}
232232- ${extraConfig}
233233- '';
234234-in
235235-236236-import ./generic.nix (
237237-238238- rec {
239239- version = "3.3.8";
240240- testing = false;
241241-242242- preConfigure = ''
243243- substituteInPlace scripts/depmod.sh --replace '-b "$INSTALL_MOD_PATH"' ""
244244- '';
245245-246246- src = fetchurl {
247247- url = "mirror://kernel/linux/kernel/v3.x/${if testing then "testing/" else ""}linux-${version}.tar.xz";
248248- sha256 = "0bgppngf711mlxp0jcsnv5xc0xxc8vs5rzc1czkv2igrfb1kvrnz";
249249- };
250250-251251- config = configWithPlatform stdenv.platform;
252252- configCross = configWithPlatform stdenv.cross.platform;
253253-254254- features.iwlwifi = true;
255255- features.efiBootStub = true;
256256- features.netfilterRPFilter = true;
257257- }
258258-259259- // removeAttrs args ["extraConfig"]
260260-)
+7-2
pkgs/os-specific/linux/kernel/linux-3.4.nix
···148148 NFSD_V3 y
149149 NFSD_V3_ACL y
150150 NFSD_V4 y
151151+ NFS_FSCACHE y
151152 CIFS_XATTR y
152153 CIFS_POSIX y
154154+ CIFS_FSCACHE y
153155154156 # Security related features.
155157 STRICT_DEVMEM y # Filter access to /dev/mem
···231233 # Devtmpfs support.
232234 DEVTMPFS y
233235236236+ # Easier debug of NFS issues
237237+ SUNRPC_DEBUG y
238238+234239 ${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""}
235240 ${extraConfig}
236241 '';
···239244import ./generic.nix (
240245241246 rec {
242242- version = "3.4.26";
247247+ version = "3.4.31";
243248 testing = false;
244249245250 preConfigure = ''
···248253249254 src = fetchurl {
250255 url = "mirror://kernel/linux/kernel/v3.x/${if testing then "testing/" else ""}linux-${version}.tar.xz";
251251- sha256 = "1zmv1g90fgqrabc0qb5ip551mh12ps1zin3hbygysc89j684rbk1";
256256+ sha256 = "1148f77iab0p5j61v42a4jka4ndwnjpd6lkqhwiqs61lmv3m7j2r";
252257 };
253258254259 config = configWithPlatform stdenv.platform;
-266
pkgs/os-specific/linux/kernel/linux-3.5.nix
···11-args @ { stdenv, fetchurl, extraConfig ? ""
22-, perl, mktemp, module_init_tools
33-, ... }:
44-55-let
66- configWithPlatform = kernelPlatform :
77- ''
88- # Power management 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
2222-2323- # Support drivers that need external firmware.
2424- STANDALONE n
2525-2626- # Make /proc/config.gz available.
2727- IKCONFIG_PROC y
2828-2929- # Optimize with -O2, not -Os.
3030- CC_OPTIMIZE_FOR_SIZE n
3131-3232- # Enable the kernel's built-in memory tester.
3333- MEMTEST y
3434-3535- # Include the CFQ I/O scheduler in the kernel, rather than as a
3636- # module, so that the initrd gets a good I/O scheduler.
3737- IOSCHED_CFQ y
3838- BLK_CGROUP y # required by CFQ
3939-4040- # Enable NUMA.
4141- NUMA? y
4242-4343- # Disable some expensive (?) features.
4444- FTRACE n
4545- KPROBES n
4646- PM_TRACE_RTC n
4747-4848- # Enable various subsystems.
4949- ACCESSIBILITY y # Accessibility support
5050- AUXDISPLAY y # Auxiliary Display support
5151- DONGLE y # Serial dongle support
5252- HIPPI? y
5353- MTD_COMPLEX_MAPPINGS y # needed for many devices
5454- SCSI_LOWLEVEL y # enable lots of SCSI devices
5555- SCSI_LOWLEVEL_PCMCIA y
5656- SPI y # needed for many devices
5757- SPI_MASTER y
5858- WAN y
5959-6060- # Networking options.
6161- IP_PNP n
6262- IPV6_PRIVACY y
6363- NETFILTER_ADVANCED y
6464- IP_VS_PROTO_TCP y
6565- IP_VS_PROTO_UDP y
6666- IP_VS_PROTO_ESP y
6767- IP_VS_PROTO_AH y
6868- IP_DCCP_CCID3 n # experimental
6969- CLS_U32_PERF y
7070- CLS_U32_MARK y
7171-7272- # Wireless networking.
7373- IPW2100_MONITOR y # support promiscuous mode
7474- IPW2200_MONITOR y # support promiscuous mode
7575- HOSTAP_FIRMWARE y # Support downloading firmware images with Host AP driver
7676- HOSTAP_FIRMWARE_NVRAM y
7777- ATH9K_PCI y # Detect Atheros AR9xxx cards on PCI(e) bus
7878- ATH9K_AHB y # Ditto, AHB bus
7979- B43_PHY_HT y
8080- BCMA_HOST_PCI y
8181-8282- # Some settings to make sure that fbcondecor works - in particular,
8383- # disable tileblitting and the drivers that need it.
8484-8585- # Enable various FB devices.
8686- FB y
8787- FB_EFI y
8888- FB_NVIDIA_I2C y # Enable DDC Support
8989- FB_RIVA_I2C y
9090- FB_ATY_CT y # Mach64 CT/VT/GT/LT (incl. 3D RAGE) support
9191- FB_ATY_GX y # Mach64 GX support
9292- FB_SAVAGE_I2C y
9393- FB_SAVAGE_ACCEL y
9494- FB_SIS_300 y
9595- FB_SIS_315 y
9696- FB_3DFX_ACCEL y
9797- FB_GEODE y
9898-9999- # Video configuration
100100- # Enable KMS for devices whose X.org driver supports it.
101101- DRM_I915_KMS y
102102- DRM_RADEON_KMS y
103103- # Hybrid graphics support
104104- VGA_SWITCHEROO y
105105-106106- # Sound.
107107- SND_AC97_POWER_SAVE y # AC97 Power-Saving Mode
108108- SND_HDA_INPUT_BEEP y # Support digital beep via input layer
109109- SND_USB_CAIAQ_INPUT y
110110- PSS_MIXER y # Enable PSS mixer (Beethoven ADSP-16 and other compatible)
111111-112112- # USB serial devices.
113113- USB_SERIAL_GENERIC y # USB Generic Serial Driver
114114- USB_SERIAL_KEYSPAN_MPR y # include firmware for various USB serial devices
115115- USB_SERIAL_KEYSPAN_USA28 y
116116- USB_SERIAL_KEYSPAN_USA28X y
117117- USB_SERIAL_KEYSPAN_USA28XA y
118118- USB_SERIAL_KEYSPAN_USA28XB y
119119- USB_SERIAL_KEYSPAN_USA19 y
120120- USB_SERIAL_KEYSPAN_USA18X y
121121- USB_SERIAL_KEYSPAN_USA19W y
122122- USB_SERIAL_KEYSPAN_USA19QW y
123123- USB_SERIAL_KEYSPAN_USA19QI y
124124- USB_SERIAL_KEYSPAN_USA49W y
125125- USB_SERIAL_KEYSPAN_USA49WLC y
126126-127127- # Filesystem options - in particular, enable extended attributes and
128128- # ACLs for all filesystems that support them.
129129- EXT2_FS_XATTR y # Ext2 extended attributes
130130- EXT2_FS_POSIX_ACL y # Ext2 POSIX Access Control Lists
131131- EXT2_FS_SECURITY y # Ext2 Security Labels
132132- EXT2_FS_XIP y # Ext2 execute in place support
133133- EXT4_FS_POSIX_ACL y
134134- EXT4_FS_SECURITY y
135135- REISERFS_FS_XATTR y
136136- REISERFS_FS_POSIX_ACL y
137137- REISERFS_FS_SECURITY y
138138- JFS_POSIX_ACL y
139139- JFS_SECURITY y
140140- XFS_QUOTA y
141141- XFS_POSIX_ACL y
142142- XFS_RT y # XFS Realtime subvolume support
143143- OCFS2_DEBUG_MASKLOG n
144144- BTRFS_FS_POSIX_ACL y
145145- UBIFS_FS_XATTR? y
146146- UBIFS_FS_ADVANCED_COMPR y
147147- NFSD_V2_ACL y
148148- NFSD_V3 y
149149- NFSD_V3_ACL y
150150- NFSD_V4 y
151151- CIFS_XATTR y
152152- CIFS_POSIX y
153153-154154- # Security related features.
155155- STRICT_DEVMEM y # Filter access to /dev/mem
156156- SECURITY_SELINUX_BOOTPARAM_VALUE 0 # disable SELinux by default
157157-158158- # Misc. options.
159159- 8139TOO_8129 y
160160- 8139TOO_PIO n # PIO is slower
161161- AIC79XX_DEBUG_ENABLE n
162162- AIC7XXX_DEBUG_ENABLE n
163163- AIC94XX_DEBUG n
164164- B43_PCMCIA y
165165- BLK_DEV_CMD640_ENHANCED y # CMD640 enhanced support
166166- BLK_DEV_IDEACPI y # IDE ACPI support
167167- BLK_DEV_INTEGRITY y
168168- BSD_PROCESS_ACCT_V3 y
169169- BT_HCIUART_BCSP y
170170- BT_HCIUART_H4 y # UART (H4) protocol support
171171- BT_HCIUART_LL y
172172- BT_RFCOMM m
173173- BT_RFCOMM_TTY y # RFCOMM TTY support
174174- CRASH_DUMP n
175175- DMAR? n # experimental
176176- DVB_DYNAMIC_MINORS y # we use udev
177177- EFI_STUB y # EFI bootloader in the bzImage itself
178178- FUSION y # Fusion MPT device support
179179- IDE_GD_ATAPI y # ATAPI floppy support
180180- IRDA_ULTRA y # Ultra (connectionless) protocol
181181- JOYSTICK_IFORCE_232 y # I-Force Serial joysticks and wheels
182182- JOYSTICK_IFORCE_USB y # I-Force USB joysticks and wheels
183183- JOYSTICK_XPAD_FF y # X-Box gamepad rumble support
184184- JOYSTICK_XPAD_LEDS y # LED Support for Xbox360 controller 'BigX' LED
185185- LDM_PARTITION y # Windows Logical Disk Manager (Dynamic Disk) support
186186- LEDS_TRIGGER_IDE_DISK y # LED IDE Disk Trigger
187187- LOGIRUMBLEPAD2_FF y # Logitech Rumblepad 2 force feedback
188188- LOGO n # not needed
189189- MEDIA_ATTACH y
190190- MEGARAID_NEWGEN y
191191- MICROCODE_AMD y
192192- MODVERSIONS y
193193- MOUSE_PS2_ELANTECH y # Elantech PS/2 protocol extension
194194- MTRR_SANITIZER y
195195- NET_FC y # Fibre Channel driver support
196196- PPP_MULTILINK y # PPP multilink support
197197- REGULATOR y # Voltage and Current Regulator Support
198198- SCSI_LOGGING y # SCSI logging facility
199199- SERIAL_8250 y # 8250/16550 and compatible serial support
200200- SLIP_COMPRESSED y # CSLIP compressed headers
201201- SLIP_SMART y
202202- THERMAL_HWMON y # Hardware monitoring support
203203- USB_DEBUG n
204204- USB_EHCI_ROOT_HUB_TT y # Root Hub Transaction Translators
205205- USB_EHCI_TT_NEWSCHED y # Improved transaction translator scheduling
206206- X86_CHECK_BIOS_CORRUPTION y
207207- X86_MCE y
208208- XEN_DOM0 y
209209-210210- # Linux Containers
211211- RT_GROUP_SCHED? y
212212- CGROUP_DEVICE? y
213213- CGROUP_MEM_RES_CTLR? y
214214- CGROUP_MEM_RES_CTLR_SWAP? y
215215- DEVPTS_MULTIPLE_INSTANCES? y
216216-217217- # Enable staging drivers. These are somewhat experimental, but
218218- # they generally don't hurt.
219219- STAGING y
220220-221221- # PROC_EVENTS requires that the netlink connector is not built
222222- # as a module. This is required by libcgroup's cgrulesengd.
223223- CONNECTOR y
224224- PROC_EVENTS y
225225-226226- # Tracing
227227- FTRACE y
228228- FUNCTION_TRACER y
229229- FTRACE_SYSCALLS y
230230- SCHED_TRACER y
231231-232232- # Devtmpfs support.
233233- DEVTMPFS y
234234-235235- ${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""}
236236- ${extraConfig}
237237- '';
238238-in
239239-240240-import ./generic.nix (
241241-242242- rec {
243243- version = "3.5.7";
244244- testing = false;
245245-246246- preConfigure = ''
247247- substituteInPlace scripts/depmod.sh --replace '-b "$INSTALL_MOD_PATH"' ""
248248- '';
249249-250250- src = fetchurl {
251251- url = "mirror://kernel/linux/kernel/v3.x/${if testing then "testing/" else ""}linux-${version}.tar.xz";
252252- sha256 = "0k3r0qrlfgn7yk35wf4c49yvyy79kzn42qcrf5kms5iir838kini";
253253- };
254254-255255- config = configWithPlatform stdenv.platform;
256256- configCross = configWithPlatform stdenv.cross.platform;
257257-258258- features.iwlwifi = true;
259259- features.efiBootStub = true;
260260- features.needsCifsUtils = true;
261261- features.canDisableNetfilterConntrackHelpers = true;
262262- features.netfilterRPFilter = true;
263263- }
264264-265265- // removeAttrs args ["extraConfig"]
266266-)
-270
pkgs/os-specific/linux/kernel/linux-3.6.nix
···11-args @ { stdenv, fetchurl, extraConfig ? ""
22-, perl, mktemp, module_init_tools
33-, ... }:
44-55-let
66- configWithPlatform = kernelPlatform :
77- ''
88- # Power management 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
2222-2323- # Support drivers that need external firmware.
2424- STANDALONE n
2525-2626- # Make /proc/config.gz available.
2727- IKCONFIG_PROC y
2828-2929- # Optimize with -O2, not -Os.
3030- CC_OPTIMIZE_FOR_SIZE n
3131-3232- # Enable the kernel's built-in memory tester.
3333- MEMTEST y
3434-3535- # Include the CFQ I/O scheduler in the kernel, rather than as a
3636- # module, so that the initrd gets a good I/O scheduler.
3737- IOSCHED_CFQ y
3838- BLK_CGROUP y # required by CFQ
3939-4040- # Enable NUMA.
4141- NUMA? y
4242-4343- # Disable some expensive (?) features.
4444- FTRACE n
4545- KPROBES n
4646- PM_TRACE_RTC n
4747-4848- # Enable various subsystems.
4949- ACCESSIBILITY y # Accessibility support
5050- AUXDISPLAY y # Auxiliary Display support
5151- DONGLE y # Serial dongle support
5252- HIPPI? y
5353- MTD_COMPLEX_MAPPINGS y # needed for many devices
5454- SCSI_LOWLEVEL y # enable lots of SCSI devices
5555- SCSI_LOWLEVEL_PCMCIA y
5656- SPI y # needed for many devices
5757- SPI_MASTER y
5858- WAN y
5959-6060- # Networking options.
6161- IP_PNP n
6262- IPV6_PRIVACY y
6363- NETFILTER_ADVANCED y
6464- IP_VS_PROTO_TCP y
6565- IP_VS_PROTO_UDP y
6666- IP_VS_PROTO_ESP y
6767- IP_VS_PROTO_AH y
6868- IP_DCCP_CCID3 n # experimental
6969- CLS_U32_PERF y
7070- CLS_U32_MARK y
7171-7272- # Wireless networking.
7373- IPW2100_MONITOR y # support promiscuous mode
7474- IPW2200_MONITOR? y # support promiscuous mode
7575- HOSTAP_FIRMWARE y # Support downloading firmware images with Host AP driver
7676- HOSTAP_FIRMWARE_NVRAM y
7777- ATH9K_PCI y # Detect Atheros AR9xxx cards on PCI(e) bus
7878- ATH9K_AHB y # Ditto, AHB bus
7979- B43_PHY_HT y
8080- BCMA_HOST_PCI y
8181-8282- # Some settings to make sure that fbcondecor works - in particular,
8383- # disable tileblitting and the drivers that need it.
8484-8585- # Enable various FB devices.
8686- FB y
8787- FB_EFI y
8888- FB_NVIDIA_I2C y # Enable DDC Support
8989- FB_RIVA_I2C y
9090- FB_ATY_CT y # Mach64 CT/VT/GT/LT (incl. 3D RAGE) support
9191- FB_ATY_GX y # Mach64 GX support
9292- FB_SAVAGE_I2C y
9393- FB_SAVAGE_ACCEL y
9494- FB_SIS_300 y
9595- FB_SIS_315 y
9696- FB_3DFX_ACCEL y
9797- FB_GEODE y
9898-9999- # Video configuration
100100- # Enable KMS for devices whose X.org driver supports it.
101101- DRM_I915_KMS y
102102- DRM_RADEON_KMS y
103103- # Hybrid graphics support
104104- VGA_SWITCHEROO y
105105-106106- # Sound.
107107- SND_AC97_POWER_SAVE y # AC97 Power-Saving Mode
108108- SND_HDA_INPUT_BEEP y # Support digital beep via input layer
109109- SND_USB_CAIAQ_INPUT y
110110- PSS_MIXER y # Enable PSS mixer (Beethoven ADSP-16 and other compatible)
111111-112112- # USB serial devices.
113113- USB_SERIAL_GENERIC y # USB Generic Serial Driver
114114- USB_SERIAL_KEYSPAN_MPR y # include firmware for various USB serial devices
115115- USB_SERIAL_KEYSPAN_USA28 y
116116- USB_SERIAL_KEYSPAN_USA28X y
117117- USB_SERIAL_KEYSPAN_USA28XA y
118118- USB_SERIAL_KEYSPAN_USA28XB y
119119- USB_SERIAL_KEYSPAN_USA19 y
120120- USB_SERIAL_KEYSPAN_USA18X y
121121- USB_SERIAL_KEYSPAN_USA19W y
122122- USB_SERIAL_KEYSPAN_USA19QW y
123123- USB_SERIAL_KEYSPAN_USA19QI y
124124- USB_SERIAL_KEYSPAN_USA49W y
125125- USB_SERIAL_KEYSPAN_USA49WLC y
126126-127127- # Filesystem options - in particular, enable extended attributes and
128128- # ACLs for all filesystems that support them.
129129- EXT2_FS_XATTR y # Ext2 extended attributes
130130- EXT2_FS_POSIX_ACL y # Ext2 POSIX Access Control Lists
131131- EXT2_FS_SECURITY y # Ext2 Security Labels
132132- EXT2_FS_XIP y # Ext2 execute in place support
133133- EXT4_FS_POSIX_ACL y
134134- EXT4_FS_SECURITY y
135135- REISERFS_FS_XATTR y
136136- REISERFS_FS_POSIX_ACL y
137137- REISERFS_FS_SECURITY y
138138- JFS_POSIX_ACL y
139139- JFS_SECURITY y
140140- XFS_QUOTA y
141141- XFS_POSIX_ACL y
142142- XFS_RT y # XFS Realtime subvolume support
143143- OCFS2_DEBUG_MASKLOG n
144144- BTRFS_FS_POSIX_ACL y
145145- UBIFS_FS_XATTR? y
146146- UBIFS_FS_ADVANCED_COMPR y
147147- NFSD_V2_ACL y
148148- NFSD_V3 y
149149- NFSD_V3_ACL y
150150- NFSD_V4 y
151151- CIFS_XATTR y
152152- CIFS_POSIX y
153153-154154- # Security related features.
155155- STRICT_DEVMEM y # Filter access to /dev/mem
156156- SECURITY_SELINUX_BOOTPARAM_VALUE 0 # disable SELinux by default
157157-158158- # Misc. options.
159159- 8139TOO_8129 y
160160- 8139TOO_PIO n # PIO is slower
161161- AIC79XX_DEBUG_ENABLE n
162162- AIC7XXX_DEBUG_ENABLE n
163163- AIC94XX_DEBUG n
164164- B43_PCMCIA y
165165- BLK_DEV_CMD640_ENHANCED y # CMD640 enhanced support
166166- BLK_DEV_IDEACPI y # IDE ACPI support
167167- BLK_DEV_INTEGRITY y
168168- BSD_PROCESS_ACCT_V3 y
169169- BT_HCIUART_BCSP y
170170- BT_HCIUART_H4 y # UART (H4) protocol support
171171- BT_HCIUART_LL y
172172- BT_RFCOMM m
173173- BT_RFCOMM_TTY y # RFCOMM TTY support
174174- CRASH_DUMP n
175175- DMAR? n # experimental
176176- DVB_DYNAMIC_MINORS? y # we use udev
177177- EFI_STUB y # EFI bootloader in the bzImage itself
178178- FUSION y # Fusion MPT device support
179179- IDE_GD_ATAPI y # ATAPI floppy support
180180- IRDA_ULTRA y # Ultra (connectionless) protocol
181181- JOYSTICK_IFORCE_232 y # I-Force Serial joysticks and wheels
182182- JOYSTICK_IFORCE_USB y # I-Force USB joysticks and wheels
183183- JOYSTICK_XPAD_FF y # X-Box gamepad rumble support
184184- JOYSTICK_XPAD_LEDS y # LED Support for Xbox360 controller 'BigX' LED
185185- LDM_PARTITION y # Windows Logical Disk Manager (Dynamic Disk) support
186186- LEDS_TRIGGER_IDE_DISK y # LED IDE Disk Trigger
187187- LOGIRUMBLEPAD2_FF y # Logitech Rumblepad 2 force feedback
188188- LOGO n # not needed
189189- MEDIA_ATTACH? y
190190- MEGARAID_NEWGEN y
191191- MICROCODE_AMD y
192192- MODVERSIONS y
193193- MOUSE_PS2_ELANTECH y # Elantech PS/2 protocol extension
194194- MTRR_SANITIZER y
195195- NET_FC y # Fibre Channel driver support
196196- PPP_MULTILINK y # PPP multilink support
197197- REGULATOR y # Voltage and Current Regulator Support
198198- SCSI_LOGGING y # SCSI logging facility
199199- SERIAL_8250 y # 8250/16550 and compatible serial support
200200- SLIP_COMPRESSED y # CSLIP compressed headers
201201- SLIP_SMART y
202202- THERMAL_HWMON y # Hardware monitoring support
203203- USB_DEBUG n
204204- USB_EHCI_ROOT_HUB_TT y # Root Hub Transaction Translators
205205- USB_EHCI_TT_NEWSCHED y # Improved transaction translator scheduling
206206- X86_CHECK_BIOS_CORRUPTION y
207207- X86_MCE y
208208- XEN_DOM0 y
209209-210210- # Linux Containers
211211- RT_GROUP_SCHED? y
212212- CGROUP_DEVICE? y
213213- CGROUP_MEM_RES_CTLR? y
214214- CGROUP_MEM_RES_CTLR_SWAP? y
215215- DEVPTS_MULTIPLE_INSTANCES? y
216216-217217- # Enable staging drivers. These are somewhat experimental, but
218218- # they generally don't hurt.
219219- STAGING y
220220-221221- # PROC_EVENTS requires that the netlink connector is not built
222222- # as a module. This is required by libcgroup's cgrulesengd.
223223- CONNECTOR y
224224- PROC_EVENTS y
225225-226226- # Tracing
227227- FTRACE y
228228- FUNCTION_TRACER y
229229- FTRACE_SYSCALLS y
230230- SCHED_TRACER y
231231-232232- # Devtmpfs support.
233233- DEVTMPFS y
234234-235235- # Media support
236236- MEDIA_CAMERA_SUPPORT? y
237237- MEDIA_RC_SUPPORT? y
238238-239239- ${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""}
240240- ${extraConfig}
241241- '';
242242-in
243243-244244-import ./generic.nix (
245245-246246- rec {
247247- version = "3.6.11";
248248- testing = false;
249249-250250- preConfigure = ''
251251- substituteInPlace scripts/depmod.sh --replace '-b "$INSTALL_MOD_PATH"' ""
252252- '';
253253-254254- src = fetchurl {
255255- url = "mirror://kernel/linux/kernel/v3.x/${if testing then "testing/" else ""}linux-${version}.tar.xz";
256256- sha256 = "0cnbdhsgxxdl44gqfqlh8nyf6yzmdz7xkfa0xh2rzdscwqh8085h";
257257- };
258258-259259- config = configWithPlatform stdenv.platform;
260260- configCross = configWithPlatform stdenv.cross.platform;
261261-262262- features.iwlwifi = true;
263263- features.efiBootStub = true;
264264- features.needsCifsUtils = true;
265265- features.canDisableNetfilterConntrackHelpers = true;
266266- features.netfilterRPFilter = true;
267267- }
268268-269269- // removeAttrs args ["extraConfig"]
270270-)
+7-2
pkgs/os-specific/linux/kernel/linux-3.7.nix
···148148 NFSD_V3 y
149149 NFSD_V3_ACL y
150150 NFSD_V4 y
151151+ NFS_FSCACHE y
151152 CIFS_XATTR y
152153 CIFS_POSIX y
154154+ CIFS_FSCACHE y
153155154156 # Security related features.
155157 STRICT_DEVMEM y # Filter access to /dev/mem
···237239 MEDIA_RC_SUPPORT? y
238240 MEDIA_USB_SUPPORT y
239241242242+ # Easier debug of NFS issues
243243+ SUNRPC_DEBUG y
244244+240245 ${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""}
241246 ${extraConfig}
242247 '';
···245250import ./generic.nix (
246251247252 rec {
248248- version = "3.7.3";
253253+ version = "3.7.8";
249254 testing = false;
250255251256 preConfigure = ''
···254259255260 src = fetchurl {
256261 url = "mirror://kernel/linux/kernel/v3.x/${if testing then "testing/" else ""}linux-${version}.tar.xz";
257257- sha256 = "05421g78kx01ia0pq3d3y3gkrzqb5grfhhy7vy1ixlq8a23kc6b7";
262262+ sha256 = "0phn7a6sfc89n3p6irk349jcxfaa5fi04in9h4wsm25klgw16vxa";
258263 };
259264260265 config = configWithPlatform stdenv.platform;
···11+From ef9b259ae24e7bf4ebec04b0b0a44964bc661bb5 Mon Sep 17 00:00:00 2001
22+From: Eelco Dolstra <eelco.dolstra@logicblox.com>
33+Date: Mon, 4 Feb 2013 12:43:08 +0100
44+Subject: [PATCH 8/8] Fix a segfault in nscd when using nss-myhostname
55+MIME-Version: 1.0
66+Content-Type: text/plain; charset=UTF-8
77+Content-Transfer-Encoding: 8bit
88+99+Nscd expects that an NSS module's gethostbyname4_r function returns
1010+its first result in the pre-allocated gaih_addrtuple denoted by **pat.
1111+(See nscd/aicache.c in the Glibc sources.) However, nss-myhostname
1212+doesn't fill in **pat but allocates the first result in ‘buffer’, then
1313+sets *pat. So nscd crashes (e.g. when running ‘getent ahosts
1414+my-machine’).
1515+1616+Hard to tell if this is a bug in nscd, since there doesn't seem to be
1717+a proper API spec for gethostbyname4_r. But in any case, this patch
1818+fixes the crash by copying the first result to **pat.
1919+---
2020+ src/nss-myhostname/nss-myhostname.c | 6 +++++-
2121+ 1 file changed, 5 insertions(+), 1 deletion(-)
2222+2323+diff --git a/src/nss-myhostname/nss-myhostname.c b/src/nss-myhostname/nss-myhostname.c
2424+index 834a806..b0fb832 100644
2525+--- a/src/nss-myhostname/nss-myhostname.c
2626++++ b/src/nss-myhostname/nss-myhostname.c
2727+@@ -176,7 +176,11 @@ enum nss_status _nss_myhostname_gethostbyname4_r(
2828+ /* Verify the size matches */
2929+ assert(idx == ms);
3030+3131+- *pat = r_tuple_prev;
3232++ /* Nscd expects us to store the first record in **pat. */
3333++ if (*pat)
3434++ **pat = *r_tuple_prev;
3535++ else
3636++ *pat = r_tuple_prev;
3737+3838+ if (ttlp)
3939+ *ttlp = 0;
4040+--
4141+1.8.1
4242+
+5-3
pkgs/os-specific/linux/systemd/default.nix
···2020 ./0004-Set-switch-to-configuration-hints-for-some-units.patch
2121 ./0005-sysinit.target-Drop-the-dependency-on-local-fs.targe.patch
2222 ./0006-Don-t-call-plymouth-quit.patch
2323+ ./0007-Ignore-IPv6-link-local-addresses.patch
2424+ ./0008-Fix-a-segfault-in-nscd-when-using-nss-myhostname.patch
2325 ] ++ stdenv.lib.optional stdenv.isArm ./libc-bug-accept4-arm.patch;
24262527 buildInputs =
···3133 [ "--localstatedir=/var"
3234 "--sysconfdir=/etc"
3335 "--with-rootprefix=$(out)"
3636+ "--with-kbd-loadkeys=${kbd}/bin/loadkeys"
3737+ "--with-kbd-setfont=${kbd}/bin/setfont"
3438 "--with-rootprefix=$(out)"
3539 "--with-dbusinterfacedir=$(out)/share/dbus-1/interfaces"
3640 "--with-dbuspolicydir=$(out)/etc/dbus-1/system.d"
···6367 PYTHON_BINARY = "${coreutils}/bin/env python"; # don't want a build time dependency on Python
64686569 NIX_CFLAGS_COMPILE =
6666- [ "-DKBD_LOADKEYS=\"${kbd}/bin/loadkeys\""
6767- "-DKBD_SETFONT=\"${kbd}/bin/setfont\""
6868- # Can't say ${polkit}/bin/pkttyagent here because that would
7070+ [ # Can't say ${polkit}/bin/pkttyagent here because that would
6971 # lead to a cyclic dependency.
7072 "-DPOLKIT_AGENT_BINARY_PATH=\"/run/current-system/sw/bin/pkttyagent\""
7173 "-fno-stack-protector"
···4141 # Add a utility function to produce derivations that use this
4242 # stdenv and its shell.
4343 mkDerivation = attrs:
4444- if !allowUnfree && (let l = attrs.meta.license or ""; in l == "unfree" || l == "unfree-redistributable") then
4444+ if !allowUnfree && (let l = attrs.meta.license or ""; in l == "unfree" || l == "unfree-redistributable" || l == lib.licenses.proprietary) then
4545 throw "package ‘${attrs.name}’ has an unfree license, refusing to evaluate"
4646 else
4747 (derivation (
+1-1
pkgs/tools/X11/xlaunch/default.nix
···4545 else
4646 RESET_OPTION=\"-noreset\"
4747 fi;
4848- XCMD=\"\$(egrep \"^env\" /etc/init/xserver.conf | sed -e \"s/env/ export /\" | sed -e '\\''s/#.*//'\\'' ; echo export _XARGS_=\\\$\\( grep xserver_arguments \\\$SLIM_CFGFILE \\| sed -e s/xserver_arguments// \\| sed -e s/:0/:\${_display}/ \\| sed -e s/vt7/vt\$((7+_display))/ \\) ; echo ${xorgserver}/bin/X \\\$_XARGS_ \$RESET_OPTION )\"
4848+ XCMD=\"\$(egrep \"^Environment=\" /etc/systemd/system/display-manager.service | sed -e \"s/Environment=/ export /\" | sed -e '\\''s/#.*//'\\'' ; echo export _XARGS_=\\\$\\( grep xserver_arguments \\\$SLIM_CFGFILE \\| sed -e s/xserver_arguments// \\| sed -e s/:0/:\${_display}/ \\| sed -e s/vt7/vt\$((7+_display))/ \\) ; echo ${xorgserver}/bin/X \\\$_XARGS_ \$RESET_OPTION )\"
4949 echo \"\$XCMD\"
5050 echo \"\$XCMD\" | bash &
5151 while ! test -e /tmp/.X11-unix/X\$_display &>/dev/null ; do sleep 0.5; done
+21
pkgs/tools/compression/lzip/default.nix
···11+{ stdenv, fetchurl }:
22+33+stdenv.mkDerivation rec {
44+ name = "lzip-1.14-rc3";
55+66+ src = fetchurl {
77+ url = "http://download.savannah.gnu.org/releases/lzip/${name}.tar.gz";
88+ sha256 = "040mmfadvhry68bv10baqi1bs8g5wwbf5rx0widyz69llpn64mw9";
99+ };
1010+1111+ doCheck = true;
1212+1313+ meta = {
1414+ homepage = "http://www.nongnu.org/lzip/lzip.html";
1515+ description = "a lossless data compressor based on the LZMA algorithm";
1616+ license = stdenv.lib.licenses.gpl3Plus;
1717+1818+ platforms = stdenv.lib.platforms.unix;
1919+ maintainers = [ stdenv.lib.maintainers.simons ];
2020+ };
2121+}