2016-04-16 23:34:22 +00:00
|
|
|
{ stdenv, fetchFromGitHub, qt4, qmake4Hook, vcg, glew }:
|
2016-02-17 12:53:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "openbrf-2016-01-09";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cfcohen";
|
|
|
|
repo = "openbrf";
|
|
|
|
rev = "c18d7431e1d499cee11586f4a035fb5fdc0d3330";
|
|
|
|
sha256 = "0laikpz0ljz7l5fgapwj09ygizmvj1iywnpfgfd0i14j46s134xb";
|
|
|
|
};
|
|
|
|
|
2016-04-16 23:34:22 +00:00
|
|
|
buildInputs = [ qt4 qmake4Hook vcg glew ];
|
2016-02-17 12:53:32 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-04-16 23:34:22 +00:00
|
|
|
qmakeFlags = [ "openBrf.pro" ];
|
|
|
|
|
2016-02-17 12:53:32 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i 's,^VCGLIB .*,VCGLIB = ${vcg}/include,' openBrf.pro
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 openBrf $out/bin/openBrf
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tool to edit resource files (BRF)";
|
2016-04-29 23:58:00 +00:00
|
|
|
homepage = "https://github.com/cfcohen/openbrf";
|
2016-02-17 12:53:32 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ abbradar ];
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|