tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
Merge branch 'master' of https://github.com/NixOS/nixpkgs
Joel Taylor
11 years ago
78ef7871
1aef9fc4
+221
-4
7 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
dmenu2
default.nix
development
libraries
webkitgtk
default.nix
tools
build-managers
cmake
2.8.nix
search-path.patch
misc
intel-gpu-tools
compile-fix.patch
default.nix
top-level
all-packages.nix
+1
-1
pkgs/applications/misc/dmenu2/default.nix
···
3
3
with stdenv.lib;
4
4
5
5
stdenv.mkDerivation rec {
6
6
-
name = "dmenu2";
6
6
+
name = "dmenu2-0.3pre-2014-07-08";
7
7
8
8
src = fetchhg {
9
9
url = "https://bitbucket.org/melek/dmenu2";
+2
-2
pkgs/development/libraries/webkitgtk/default.nix
···
11
11
with stdenv.lib;
12
12
stdenv.mkDerivation rec {
13
13
name = "webkitgtk-${version}";
14
14
-
version = "2.8.0";
14
14
+
version = "2.8.3";
15
15
16
16
meta = {
17
17
description = "Web content rendering engine, GTK+ port";
···
25
25
26
26
src = fetchurl {
27
27
url = "http://webkitgtk.org/releases/${name}.tar.xz";
28
28
-
sha256 = "05b8mkr1mv1w5vi5vyczzirgf5nr6qavrdwbcaiv0dghylwx5yh5";
28
28
+
sha256 = "05igg61lflgwy83cmxgyzmvf2bkhplmp8710ssrlpmbfcz461pmk";
29
29
};
30
30
31
31
patches = [ ./finding-harfbuzz-icu.patch ];
+73
pkgs/development/tools/build-managers/cmake/2.8.nix
···
1
1
+
{ stdenv, fetchurl, fetchpatch, replace, curl, expat, zlib, bzip2, libarchive
2
2
+
, useNcurses ? false, ncurses, useQt4 ? false, qt4, wantPS ? false, ps ? null
3
3
+
}:
4
4
+
5
5
+
with stdenv.lib;
6
6
+
7
7
+
assert wantPS -> (ps != null);
8
8
+
9
9
+
let
10
10
+
os = stdenv.lib.optionalString;
11
11
+
majorVersion = "2.8";
12
12
+
minorVersion = "12.2";
13
13
+
version = "${majorVersion}.${minorVersion}";
14
14
+
in
15
15
+
16
16
+
stdenv.mkDerivation rec {
17
17
+
name = "cmake-${os useNcurses "cursesUI-"}${os useQt4 "qt4UI-"}${version}";
18
18
+
19
19
+
inherit majorVersion;
20
20
+
21
21
+
src = fetchurl {
22
22
+
url = "${meta.homepage}files/v${majorVersion}/cmake-${version}.tar.gz";
23
23
+
sha256 = "0phf295a9cby0v7zqdswr238v5aiy3rb2fs6dz39zjxbmzlp8rcc";
24
24
+
};
25
25
+
26
26
+
enableParallelBuilding = true;
27
27
+
28
28
+
patches =
29
29
+
[(fetchpatch { # see http://www.cmake.org/Bug/view.php?id=13959
30
30
+
name = "FindFreetype-2.5.patch";
31
31
+
url = "http://www.cmake.org/Bug/file_download.php?file_id=4660&type=bug";
32
32
+
sha256 = "136z63ff83hnwd247cq4m8m8164pklzyl5i2csf5h6wd8p01pdkj";
33
33
+
})] ++
34
34
+
# Don't search in non-Nix locations such as /usr, but do search in
35
35
+
# Nixpkgs' Glibc.
36
36
+
optional (stdenv ? glibc) ./search-path.patch ++
37
37
+
optional (stdenv ? cross) (fetchurl {
38
38
+
name = "fix-darwin-cross-compile.patch";
39
39
+
url = "http://public.kitware.com/Bug/file_download.php?"
40
40
+
+ "file_id=4981&type=bug";
41
41
+
sha256 = "16acmdr27adma7gs9rs0dxdiqppm15vl3vv3agy7y8s94wyh4ybv";
42
42
+
});
43
43
+
44
44
+
buildInputs = [ curl expat zlib bzip2 libarchive ]
45
45
+
++ optional useNcurses ncurses
46
46
+
++ optional useQt4 qt4;
47
47
+
48
48
+
propagatedBuildInputs = optional wantPS ps;
49
49
+
50
50
+
CMAKE_PREFIX_PATH = stdenv.lib.concatStringsSep ":" buildInputs;
51
51
+
52
52
+
configureFlags =
53
53
+
"--docdir=/share/doc/${name} --mandir=/share/man --system-libs"
54
54
+
+ stdenv.lib.optionalString useQt4 " --qt-gui";
55
55
+
56
56
+
setupHook = ./setup-hook.sh;
57
57
+
58
58
+
dontUseCmakeConfigure = true;
59
59
+
60
60
+
preConfigure = optionalString (stdenv ? glibc)
61
61
+
''
62
62
+
source $setupHook
63
63
+
fixCmakeFiles .
64
64
+
substituteInPlace Modules/Platform/UnixPaths.cmake --subst-var-by glibc ${stdenv.glibc}
65
65
+
'';
66
66
+
67
67
+
meta = {
68
68
+
homepage = http://www.cmake.org/;
69
69
+
description = "Cross-Platform Makefile Generator";
70
70
+
platforms = if useQt4 then qt4.meta.platforms else stdenv.lib.platforms.all;
71
71
+
maintainers = with stdenv.lib.maintainers; [ urkud mornfall ];
72
72
+
};
73
73
+
}
+97
pkgs/development/tools/build-managers/cmake/search-path.patch
···
1
1
+
diff --git a/Modules/Platform/Linux.cmake b/Modules/Platform/Linux.cmake
2
2
+
index fe8e003..378512c 100644
3
3
+
--- a/Modules/Platform/Linux.cmake
4
4
+
+++ b/Modules/Platform/Linux.cmake
5
5
+
@@ -36,13 +36,13 @@ else()
6
6
+
# checking the platform every time. This option is advanced enough
7
7
+
# that only package maintainers should need to adjust it. They are
8
8
+
# capable of providing a setting on the command line.
9
9
+
- if(EXISTS "/etc/debian_version")
10
10
+
- set(CMAKE_INSTALL_SO_NO_EXE 1 CACHE INTERNAL
11
11
+
- "Install .so files without execute permission.")
12
12
+
- else()
13
13
+
+ # if(EXISTS "/etc/debian_version")
14
14
+
+ # set(CMAKE_INSTALL_SO_NO_EXE 1 CACHE INTERNAL
15
15
+
+ # "Install .so files without execute permission.")
16
16
+
+ # else()
17
17
+
set(CMAKE_INSTALL_SO_NO_EXE 0 CACHE INTERNAL
18
18
+
"Install .so files without execute permission.")
19
19
+
- endif()
20
20
+
+ # endif()
21
21
+
endif()
22
22
+
23
23
+
# Match multiarch library directory names.
24
24
+
@@ -52,6 +52,6 @@ include(Platform/UnixPaths)
25
25
+
26
26
+
# Debian has lib64 paths only for compatibility so they should not be
27
27
+
# searched.
28
28
+
-if(EXISTS "/etc/debian_version")
29
29
+
- set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS FALSE)
30
30
+
-endif()
31
31
+
+# if(EXISTS "/etc/debian_version")
32
32
+
+# set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS FALSE)
33
33
+
+#endif()
34
34
+
diff --git a/Modules/Platform/UnixPaths.cmake b/Modules/Platform/UnixPaths.cmake
35
35
+
index ccb2663..39834e6 100644
36
36
+
--- a/Modules/Platform/UnixPaths.cmake
37
37
+
+++ b/Modules/Platform/UnixPaths.cmake
38
38
+
@@ -33,55 +33,18 @@ get_filename_component(_CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" PATH)
39
39
+
# search types.
40
40
+
list(APPEND CMAKE_SYSTEM_PREFIX_PATH
41
41
+
# Standard
42
42
+
- /usr/local /usr /
43
43
+
-
44
44
+
- # CMake install location
45
45
+
- "${_CMAKE_INSTALL_DIR}"
46
46
+
-
47
47
+
- # Project install destination.
48
48
+
- "${CMAKE_INSTALL_PREFIX}"
49
49
+
- )
50
50
+
-
51
51
+
-# List common include file locations not under the common prefixes.
52
52
+
-list(APPEND CMAKE_SYSTEM_INCLUDE_PATH
53
53
+
- # Windows API on Cygwin
54
54
+
- /usr/include/w32api
55
55
+
-
56
56
+
- # X11
57
57
+
- /usr/X11R6/include /usr/include/X11
58
58
+
-
59
59
+
- # Other
60
60
+
- /usr/pkg/include
61
61
+
- /opt/csw/include /opt/include
62
62
+
- /usr/openwin/include
63
63
+
- )
64
64
+
-
65
65
+
-list(APPEND CMAKE_SYSTEM_LIBRARY_PATH
66
66
+
- # Windows API on Cygwin
67
67
+
- /usr/lib/w32api
68
68
+
-
69
69
+
- # X11
70
70
+
- /usr/X11R6/lib /usr/lib/X11
71
71
+
-
72
72
+
- # Other
73
73
+
- /usr/pkg/lib
74
74
+
- /opt/csw/lib /opt/lib
75
75
+
- /usr/openwin/lib
76
76
+
- )
77
77
+
-
78
78
+
-list(APPEND CMAKE_SYSTEM_PROGRAM_PATH
79
79
+
- /usr/pkg/bin
80
80
+
+ "@glibc@"
81
81
+
)
82
82
+
83
83
+
list(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
84
84
+
- /lib /usr/lib /usr/lib32 /usr/lib64
85
85
+
+ "@glibc@/lib"
86
86
+
)
87
87
+
88
88
+
list(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES
89
89
+
- /usr/include
90
90
+
+ "@glibc@/include"
91
91
+
)
92
92
+
list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES
93
93
+
- /usr/include
94
94
+
+ "@glibc@/include"
95
95
+
)
96
96
+
97
97
+
# Enable use of lib64 search path variants by default.
+37
pkgs/development/tools/misc/intel-gpu-tools/compile-fix.patch
···
1
1
+
From 233808a58db1f62d773b03f9dad599924170aca6 Mon Sep 17 00:00:00 2001
2
2
+
From: Chris Wilson <chris@chris-wilson.co.uk>
3
3
+
Date: Wed, 18 Mar 2015 08:36:37 +0000
4
4
+
Subject: lib/batch: Trivial compile fix for 32-bit builds
5
5
+
6
6
+
intel_batchbuffer.c: In function 'fill_object':
7
7
+
intel_batchbuffer.c:589:20: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
8
8
+
obj->relocs_ptr = (uint64_t)relocs;
9
9
+
^
10
10
+
intel_batchbuffer.c: In function 'exec_blit':
11
11
+
intel_batchbuffer.c:598:21: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
12
12
+
exec.buffers_ptr = (uint64_t)objs;
13
13
+
14
14
+
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
15
15
+
16
16
+
diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
17
17
+
index 666c323..c1c27a6 100644
18
18
+
--- a/lib/intel_batchbuffer.c
19
19
+
+++ b/lib/intel_batchbuffer.c
20
20
+
@@ -548,7 +548,7 @@ fill_object(struct drm_i915_gem_exec_object2 *obj, uint32_t gem_handle,
21
21
+
memset(obj, 0, sizeof(*obj));
22
22
+
obj->handle = gem_handle;
23
23
+
obj->relocation_count = count;
24
24
+
- obj->relocs_ptr = (uint64_t)relocs;
25
25
+
+ obj->relocs_ptr = (uintptr_t)relocs;
26
26
+
}
27
27
+
28
28
+
static void exec_blit(int fd,
29
29
+
@@ -557,7 +557,7 @@ static void exec_blit(int fd,
30
30
+
{
31
31
+
struct drm_i915_gem_execbuffer2 exec;
32
32
+
33
33
+
- exec.buffers_ptr = (uint64_t)objs;
34
34
+
+ exec.buffers_ptr = (uintptr_t)objs;
35
35
+
exec.buffer_count = count;
36
36
+
exec.batch_start_offset = 0;
37
37
+
exec.batch_len = batch_len * 4;
+2
pkgs/development/tools/misc/intel-gpu-tools/default.nix
···
10
10
11
11
buildInputs = [ pkgconfig libdrm libpciaccess cairo dri2proto udev libX11 libXext libXv libXrandr glib bison ];
12
12
13
13
+
patches = [ ./compile-fix.patch ];
14
14
+
13
15
meta = with stdenv.lib; {
14
16
homepage = https://01.org/linuxgraphics/;
15
17
description = "Tools for development and testing of the Intel DRM driver";
+9
-1
pkgs/top-level/all-packages.nix
···
5088
5088
5089
5089
ctodo = callPackage ../applications/misc/ctodo { };
5090
5090
5091
5091
+
cmake-2_8 = callPackage ../development/tools/build-managers/cmake/2.8.nix {
5092
5092
+
wantPS = stdenv.isDarwin;
5093
5093
+
ps = if stdenv.isDarwin then darwin.ps else null;
5094
5094
+
};
5095
5095
+
5091
5096
cmake = callPackage ../development/tools/build-managers/cmake {
5092
5097
wantPS = stdenv.isDarwin;
5093
5098
ps = if stdenv.isDarwin then darwin.ps else null;
···
10479
10484
cinepaint = callPackage ../applications/graphics/cinepaint {
10480
10485
fltk = fltk13;
10481
10486
libpng = libpng12;
10487
10487
+
cmake = cmake-2_8;
10482
10488
};
10483
10489
10484
10490
codeblocks = callPackage ../applications/editors/codeblocks { };
···
11001
11007
ffmpeg = ffmpeg_1;
11002
11008
};
11003
11009
11004
11004
-
freerdpUnstable = callPackage ../applications/networking/remote/freerdp/unstable.nix { };
11010
11010
+
freerdpUnstable = callPackage ../applications/networking/remote/freerdp/unstable.nix {
11011
11011
+
cmake = cmake-2_8;
11012
11012
+
};
11005
11013
11006
11014
freicoin = callPackage ../applications/misc/freicoin { };
11007
11015