1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 10:00:56 +00:00
nixpkgs/pkgs/applications/misc/openbrf/default.nix

47 lines
1.3 KiB
Nix
Raw Normal View History

2017-05-13 09:38:19 +01:00
{ stdenv, fetchFromGitHub, qtbase, vcg, glew, qmakeHook, makeQtWrapper, mesa }:
2016-02-17 12:53:32 +00:00
stdenv.mkDerivation {
2017-05-13 09:38:19 +01:00
name = "openbrf-unstable-2016-01-09";
2016-02-17 12:53:32 +00:00
src = fetchFromGitHub {
owner = "cfcohen";
repo = "openbrf";
2017-05-13 09:38:19 +01:00
rev = "4bdc66e38def5e5184f5379c84a7558b7484c70a";
sha256 = "16254cnr60ihcn7bki7wl1qm6gkvzb99cn66md1pnb7za8nvzf4j";
2016-02-17 12:53:32 +00:00
};
2017-05-13 09:38:19 +01:00
buildInputs = [ qtbase vcg glew ];
nativeBuildInputs = [ qmakeHook makeQtWrapper ];
2016-02-17 12:53:32 +00:00
enableParallelBuilding = true;
2016-04-17 00:34:22 +01:00
qmakeFlags = [ "openBrf.pro" ];
2016-02-17 12:53:32 +00:00
postPatch = ''
sed -i 's,^VCGLIB .*,VCGLIB = ${vcg}/include,' openBrf.pro
'';
installPhase = ''
2017-05-13 09:38:19 +01: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 \
--set-rpath "${stdenv.lib.makeLibraryPath [ qtbase glew stdenv.cc.cc mesa ]}" \
$out/share/openBrf/openBrf
makeQtWrapper "$out/share/openBrf/openBrf" "$out/bin/openBrf"
2016-02-17 12:53:32 +00:00
'';
2017-05-13 09:38:19 +01:00
dontPatchELF = true;
2016-02-17 12:53:32 +00:00
meta = with stdenv.lib; {
description = "A tool to edit resource files (BRF)";
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;
};
}