···1+# - Try to find Libfacile
2+# Once done this will define
3+#
4+# LIBFACILE_FOUND - system has Libfacile
5+# LIBFACILE_INCLUDE_DIR - the Libfacile include directory
6+# LIBFACILE_LIBRARIES - Link these to use Libfacile
7+#
8+# Copyright (c) 2006, Carsten Niehaus, <cniehaus@gmx.de>
9+# Copyright (c) 2006, Montel Laurent, <montel@kde.org>
10+# Redistribution and use is allowed according to the terms of the BSD license.
11+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
12+13+14+find_package(OCaml)
15+16+if( OCAML_FOUND )
17+ find_library(LIBFACILE_LIBRARIES NAMES facile.a
18+ HINTS ${OCAMLC_DIR}
19+ PATH_SUFFIXES facile ocaml/facile
20+ )
21+ find_path(LIBFACILE_INCLUDE_DIR NAMES facile.cmi
22+ HINTS ${OCAMLC_DIR}
23+ PATH_SUFFIXES facile lib/ocaml/facile
24+ )
25+endif(OCAML_FOUND)
26+27+include(FindPackageHandleStandardArgs)
28+find_package_handle_standard_args(Libfacile DEFAULT_MSG LIBFACILE_INCLUDE_DIR
29+ LIBFACILE_LIBRARIES OCAML_FOUND)
30+31+# show the LIBFACILE_INCLUDE_DIR and LIBFACILE_LIBRARIES variables only in the advanced view
32+mark_as_advanced(LIBFACILE_INCLUDE_DIR LIBFACILE_LIBRARIES )
+8
pkgs/desktops/kde-4.8/kdeedu/analitza.nix
···00000000
···1+{ kde, kdelibs, readline }:
2+kde {
3+ buildInputs = [ kdelibs readline ];
4+5+ meta = {
6+ description = "Library part of KAlgebra";
7+ };
8+}
···1+{ kde, kdelibs }:
2+3+kde {
4+ buildInputs = [ kdelibs ];
5+6+ meta = {
7+ description = "A program to view the differences between files and optionally generate a diff";
8+ };
9+}
+9
pkgs/desktops/kde-4.8/kdesdk/kpartloader.nix
···000000000
···1+{ kde, kdelibs }:
2+3+kde {
4+ buildInputs = [ kdelibs ];
5+6+ meta = {
7+ description = "A test application for KParts";
8+ };
9+}
+9
pkgs/desktops/kde-4.8/kdesdk/kprofilemethod.nix
···000000000
···1+{ kde, kdelibs }:
2+3+kde {
4+ buildInputs = [ kdelibs ];
5+6+ meta = {
7+ description = "A macro for profiling using QTime";
8+ };
9+}
+9
pkgs/desktops/kde-4.8/kdesdk/kstartperf.nix
···000000000
···1+{ kde, kdelibs, libtool }:
2+3+kde {
4+ buildInputs = [ kdelibs libtool ];
5+6+ meta = {
7+ description = "Measures start up time of a KDE application";
8+ };
9+}
···1-{ stdenv, fetchurl, pkgconfig, gettext, perl }:
2-3-stdenv.mkDerivation rec {
4- name = "glib-2.20.1";
5-6- src = fetchurl {
7- url = "mirror://gnome/sources/glib/2.20/${name}.tar.bz2";
8- sha256 = "0ndgshcqzpj3piwmag3vrsv3rg4pnr12y70knl7z0k2i03cy5bav";
9- };
10-11- buildNativeInputs = [perl];
12- buildInputs = [pkgconfig gettext];
13-14- # The nbd package depends on a static version of this library; hence
15- # the default configure flag --disable-static is switched off.
16- dontDisableStatic = true;
17- configureFlags = "--enable-static --enable-shared";
18-19- meta = {
20- description = "GLib, a C library of programming buildings blocks";
21-22- longDescription = ''
23- GLib provides the core application building blocks for libraries
24- and applications written in C. It provides the core object
25- system used in GNOME, the main loop implementation, and a large
26- set of utility functions for strings and common data structures.
27- '';
28-29- homepage = http://www.gtk.org/;
30-31- license = "LGPLv2+";
32- };
33-}
···000000000000000000000000000000000
-39
pkgs/development/libraries/gtk+/2.16.x.nix
···1-{ stdenv, fetchurl, pkgconfig, perl, jasper, x11, glib, atk, pango
2-, libtiff, libjpeg, libpng, cairo, xlibs
3-, xineramaSupport ? true
4-}:
5-6-stdenv.mkDerivation rec {
7- name = "gtk+-2.16.2";
8-9- src = fetchurl {
10- url = "mirror://gnome/sources/gtk+/2.16/${name}.tar.bz2";
11- sha256 = "07gdsl3ialpwfcd0z3w108r60dn0agj12s21fpkpcx44lzknnbm3";
12- };
13-14- buildNativeInputs = [ perl ];
15- buildInputs = [ pkgconfig jasper ];
16-17- propagatedBuildInputs = [
18- x11 glib atk pango libtiff libjpeg libpng cairo xlibs.libXrandr
19- ] ++ stdenv.lib.optional xineramaSupport xlibs.libXinerama;
20-21- meta = {
22- description = "A multi-platform toolkit for creating graphical user interfaces";
23-24- longDescription = ''
25- GTK+ is a highly usable, feature rich toolkit for creating
26- graphical user interfaces which boasts cross platform
27- compatibility and an easy to use API. GTK+ it is written in C,
28- but has bindings to many other popular programming languages
29- such as C++, Python and C# among others. GTK+ is licensed
30- under the GNU LGPL 2.1 allowing development of both free and
31- proprietary software with GTK+ without any license fees or
32- royalties.
33- '';
34-35- homepage = http://www.gtk.org/;
36-37- license = "LGPLv2+";
38- };
39-}
···1-{ stdenv, fetchurl, pkgconfig, gettext, x11, glib, cairo, libpng }:
2-3-stdenv.mkDerivation rec {
4- name = "pango-1.24.1";
5-6- src = fetchurl {
7- url = "mirror://gnome/sources/pango/1.24/${name}.tar.bz2";
8- sha256 = "1cls9cbk6sx81101gh2pkiri8v14shqpvy37cydbh8scs4yk8370";
9- };
10-11- buildInputs = [pkgconfig] ++ (if stdenv.system == "i686-darwin" then [gettext] else []);
12-13- propagatedBuildInputs = [x11 glib cairo libpng];
14-15- meta = {
16- description = "A library for laying out and rendering of text, with an emphasis on internationalization";
17-18- longDescription = ''
19- Pango is a library for laying out and rendering of text, with an
20- emphasis on internationalization. Pango can be used anywhere
21- that text layout is needed, though most of the work on Pango so
22- far has been done in the context of the GTK+ widget toolkit.
23- Pango forms the core of text and font handling for GTK+-2.x.
24- '';
25-26- homepage = http://www.pango.org/;
27- license = "LGPLv2+";
28- };
29-}
···1+{stdenv, fetchurl, m4, zlib, bzip2, xz, bison, flex, gettext}:
23# TODO: Look at the hardcoded paths to kernel, modules etc.
4stdenv.mkDerivation rec {
···13 sha256 = "19mlgxyzcwiv64ynj2cibgkiw4qkm3n37kizvy6555dsmlaqfybq";
14 };
1516+ patches = [
17+ (fetchurl {
18+ url = https://fedorahosted.org/releases/e/l/elfutils/0.152/elfutils-portability.patch;
19+ sha256 = "0q318w4cvvqv9ps4xcwphapj1gl31isgjyya4y9sm72qj68n61p0";
20+ }) ];
21+22+ # We need bzip2 in NativeInputs because otherwise we can't unpack the src,
23+ # as the host-bzip2 will be in the path.
24+ buildNativeInputs = [m4 bison flex gettext bzip2];
25+ buildInputs = [zlib bzip2 xz];
26+27+ crossAttrs = {
28+29+ /* Having bzip2 will harm, because anything using elfutils
30+ as buildInput cross-building, will not be able to run 'bzip2' */
31+ propagatedBuildInputs = [ zlib.hostDrv ];
3233+ # This program does not cross-build fine. So I only cross-build some parts
34+ # I need for the linux perf tool.
35+ # On the awful cross-building:
36+ # http://comments.gmane.org/gmane.comp.sysutils.elfutils.devel/2005
37+ #
38+ # I wrote this testing for the nanonote.
39+ buildPhase = ''
40+ pushd libebl
41+ make
42+ popd
43+ pushd libelf
44+ make
45+ popd
46+ pushd libdwfl
47+ make
48+ popd
49+ pushd libdw
50+ make
51+ popd
52+ '';
53+54+ installPhase = ''
55+ pushd libelf
56+ make install
57+ popd
58+ pushd libdwfl
59+ make install
60+ popd
61+ pushd libdw
62+ make install
63+ popd
64+ cp version.h $out/include
65+ '';
66+ };
6768 dontAddDisableDepTrack = true;
69
···26 done
27 chmod +w -R *
28 sed -i -e 's/console=ttyS0,57600n8//' include/configs/qi_lb60.h
0029 '';
3031 # Remove the cross compiler prefix, and add reiserfs support
···26 done
27 chmod +w -R *
28 sed -i -e 's/console=ttyS0,57600n8//' include/configs/qi_lb60.h
29+ # Load more than 2MiB for the kernel
30+ sed -i -e 's/0x200000;bootm/0x400000;bootm/' include/configs/qi_lb60.h
31 '';
3233 # Remove the cross compiler prefix, and add reiserfs support