···11{stdenv, fetchurl,
22zlib, libpng, libjpeg, perl, expat, qt3,
33libX11, libXext, libSM, libICE,
44-withKde, kdelibs, kdebase
54}:
6576stdenv.mkDerivation rec {
···13121413 buildInputs =
1514 [zlib libpng libX11 libXext libSM libICE perl expat libjpeg]
1616- ++ (if withKde then [kdelibs] else [])
1715 ;
18161917 patches = [ ./timezone-glibc.patch ];
···5149 --x-includes=${libX11}/include
5250 --x-libraries=${libX11}/lib
5351 --with-qt-dir=${qt3}
5454- --with-kde-support=${if withKde then "yes" else "no"} --with-ical-support=${if withKde then "yes" else "no"}
5552 ";
56535754 preInstall = ''
···61586259 installFlags =
6360 # kde_locale is not defined when installing without kde.
6464- if withKde then "" else "kde_locale=\${out}/share/locale";
6161+ "kde_locale=\${out}/share/locale";
65626663 meta = {
6764 homepage = "http://www.taskjuggler.org";
+9-25
pkgs/applications/office/ledger/2.6.3.nix
···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-
···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;
···1313 caseInsensitive enumerator MonadCatchIOTransformers mtl network
1414 snapCore text time unixCompat
1515 ];
1616+ jailbreak = true;
1617 meta = {
1718 homepage = "http://snapframework.com/";
1819 description = "A fast, iteratee-based, epoll-enabled web server for the Snap Framework";
···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}
+11
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+ deepSeq = x: y:
3131+ if builtins.isList x
3232+ then deepSeqList x y
3333+ else if builtins.isAttrs x
3434+ then deepSeqAttrs x y
3535+ else seq x y;
2536}
+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}
+5-5
pkgs/misc/emulators/wine/default.nix
···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";
···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-)