2020-04-07 22:29:34 +02:00
|
|
|
{ mkDerivation, stdenv, fetchFromGitHub, qtbase, vcg, glew, qmake, libGLU, libGL }:
|
2017-05-13 10:38:19 +02:00
|
|
|
|
2016-02-17 13:53:32 +01:00
|
|
|
|
2020-04-07 22:29:34 +02:00
|
|
|
mkDerivation {
|
2017-05-13 10:38:19 +02:00
|
|
|
name = "openbrf-unstable-2016-01-09";
|
2016-02-17 13:53:32 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cfcohen";
|
|
|
|
repo = "openbrf";
|
2017-05-13 10:38:19 +02:00
|
|
|
rev = "4bdc66e38def5e5184f5379c84a7558b7484c70a";
|
|
|
|
sha256 = "16254cnr60ihcn7bki7wl1qm6gkvzb99cn66md1pnb7za8nvzf4j";
|
2016-02-17 13:53:32 +01:00
|
|
|
};
|
|
|
|
|
2017-05-13 10:38:19 +02:00
|
|
|
buildInputs = [ qtbase vcg glew ];
|
2016-02-17 13:53:32 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2017-05-17 21:26:11 +02:00
|
|
|
nativeBuildInputs = [ qmake ];
|
2016-02-17 13:53:32 +01:00
|
|
|
|
2016-04-17 01:34:22 +02:00
|
|
|
qmakeFlags = [ "openBrf.pro" ];
|
|
|
|
|
2016-02-17 13:53:32 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i 's,^VCGLIB .*,VCGLIB = ${vcg}/include,' openBrf.pro
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2017-05-13 10:38:19 +02:00
|
|
|
install -Dm755 openBrf $out/share/openBrf/openBrf
|
|
|
|
install -Dm644 carry_positions.txt $out/share/openBrf/carry_positions.txt
|
|
|
|
install -Dm644 reference.brf $out/share/openBrf/reference.brf
|
|
|
|
|
|
|
|
patchelf \
|
2019-11-10 17:44:34 +01:00
|
|
|
--set-rpath "${stdenv.lib.makeLibraryPath [ qtbase glew stdenv.cc.cc libGLU libGL ]}" \
|
2017-05-13 10:38:19 +02:00
|
|
|
$out/share/openBrf/openBrf
|
|
|
|
|
2017-09-09 04:25:37 +02:00
|
|
|
mkdir -p "$out/bin"
|
2017-05-17 21:26:11 +02:00
|
|
|
ln -s "$out/share/openBrf/openBrf" "$out/bin/openBrf"
|
2016-02-17 13:53:32 +01:00
|
|
|
'';
|
|
|
|
|
2017-05-13 10:38:19 +02:00
|
|
|
dontPatchELF = true;
|
|
|
|
|
2016-02-17 13:53:32 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool to edit resource files (BRF)";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/cfcohen/openbrf";
|
2016-02-17 13:53:32 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ abbradar ];
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|