1
- { stdenv , fetchFromGitHub , qt4 , qmake4Hook , vcg , glew } :
1
+ { stdenv , fetchFromGitHub , qtbase , vcg , glew , qmakeHook , makeQtWrapper , mesa } :
2
+
2
3
3
4
stdenv . mkDerivation {
4
- name = "openbrf-2016-01-09" ;
5
+ name = "openbrf-unstable- 2016-01-09" ;
5
6
6
7
src = fetchFromGitHub {
7
8
owner = "cfcohen" ;
8
9
repo = "openbrf" ;
9
- rev = "c18d7431e1d499cee11586f4a035fb5fdc0d3330 " ;
10
- sha256 = "0laikpz0ljz7l5fgapwj09ygizmvj1iywnpfgfd0i14j46s134xb " ;
10
+ rev = "4bdc66e38def5e5184f5379c84a7558b7484c70a " ;
11
+ sha256 = "16254cnr60ihcn7bki7wl1qm6gkvzb99cn66md1pnb7za8nvzf4j " ;
11
12
} ;
12
13
13
- buildInputs = [ qt4 qmake4Hook vcg glew ] ;
14
+ buildInputs = [ qtbase vcg glew ] ;
15
+ nativeBuildInputs = [ qmakeHook makeQtWrapper ] ;
14
16
15
17
enableParallelBuilding = true ;
16
18
@@ -21,9 +23,19 @@ stdenv.mkDerivation {
21
23
'' ;
22
24
23
25
installPhase = ''
24
- install -Dm755 openBrf $out/bin/openBrf
26
+ install -Dm755 openBrf $out/share/openBrf/openBrf
27
+ install -Dm644 carry_positions.txt $out/share/openBrf/carry_positions.txt
28
+ install -Dm644 reference.brf $out/share/openBrf/reference.brf
29
+
30
+ patchelf \
31
+ --set-rpath "${ stdenv . lib . makeLibraryPath [ qtbase glew stdenv . cc . cc mesa ] } " \
32
+ $out/share/openBrf/openBrf
33
+
34
+ makeQtWrapper "$out/share/openBrf/openBrf" "$out/bin/openBrf"
25
35
'' ;
26
36
37
+ dontPatchELF = true ;
38
+
27
39
meta = with stdenv . lib ; {
28
40
description = "A tool to edit resource files (BRF)" ;
29
41
homepage = "https://github.com/cfcohen/openbrf" ;
0 commit comments