tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
glslviewer: 1.2 -> 2018-01-31, fixes build
Tuomas Tynkkynen
7 years ago
a8eb2c9e
1800e4ec
+21
-11
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
glslviewer
default.nix
+21
-11
pkgs/development/tools/glslviewer/default.nix
···
1
1
{ stdenv, fetchFromGitHub, glfw, pkgconfig, libXrandr, libXdamage
2
2
, libXext, libXrender, libXinerama, libXcursor, libXxf86vm, libXi
3
3
-
, libX11, libGLU, Cocoa
3
3
+
, libX11, libGLU, python2Packages, ensureNewerSourcesForZipFilesHook
4
4
+
, Cocoa
4
5
}:
5
6
6
7
stdenv.mkDerivation rec {
7
8
name = "glslviewer-${version}";
8
8
-
version = "1.2";
9
9
+
version = "2018-01-31";
9
10
10
11
src = fetchFromGitHub {
11
12
owner = "patriciogonzalezvivo";
12
13
repo = "glslViewer";
13
13
-
rev = version;
14
14
-
sha256 = "05ya821l2pd58anyx21mgmlm2bv78rz8cnbvqw4d9pfhq40z9psw";
14
14
+
rev = "cac40f6984dbeb638950744c9508aa88591fea6c";
15
15
+
sha256 = "1bykpp68hdxjlxvi1xicyb6822mz69q0adz24faaac372pls4bk0";
15
16
};
16
17
18
18
+
nativeBuildInputs = [ pkgconfig ensureNewerSourcesForZipFilesHook ];
19
19
+
buildInputs = [
20
20
+
glfw libGLU glfw libXrandr libXdamage
21
21
+
libXext libXrender libXinerama libXcursor libXxf86vm
22
22
+
libXi libX11
23
23
+
] ++ (with python2Packages; [ python setuptools wrapPython ])
24
24
+
++ stdenv.lib.optional stdenv.isDarwin Cocoa;
25
25
+
pythonPath = with python2Packages; [ requests.dev ];
26
26
+
17
27
# Makefile has /usr/local/bin hard-coded for 'make install'
18
28
preConfigure = ''
19
29
substituteInPlace Makefile \
20
30
--replace '/usr/local' "$out" \
21
31
--replace '/usr/bin/clang++' 'clang++'
32
32
+
substituteInPlace Makefile \
33
33
+
--replace 'python setup.py install' "python setup.py install --prefix=$out"
22
34
'';
23
35
24
36
preInstall = ''
25
25
-
mkdir -p $out/bin
37
37
+
mkdir -p $out/bin $(toPythonPath "$out")
38
38
+
export PYTHONPATH=$PYTHONPATH:$(toPythonPath "$out")
26
39
'';
27
40
28
28
-
nativeBuildInputs = [ pkgconfig ];
29
29
-
buildInputs = [
30
30
-
glfw libGLU glfw libXrandr libXdamage
31
31
-
libXext libXrender libXinerama libXcursor libXxf86vm
32
32
-
libXi libX11
33
33
-
] ++ stdenv.lib.optional stdenv.isDarwin Cocoa;
41
41
+
postInstall = ''
42
42
+
wrapPythonPrograms
43
43
+
'';
34
44
35
45
meta = with stdenv.lib; {
36
46
description = "Live GLSL coding renderer";