18 version = "unstable-2016-01-09";
20 src = fetchFromGitHub {
23 rev = "4bdc66e38def5e5184f5379c84a7558b7484c70a";
24 sha256 = "16254cnr60ihcn7bki7wl1qm6gkvzb99cn66md1pnb7za8nvzf4j";
28 # https://github.com/cfcohen/openbrf/pull/7
30 name = "fix-build-against-newer-vcglib.patch";
31 url = "https://github.com/cfcohen/openbrf/commit/6d82a25314a393e72bfbe2ffc3965bcac407df4c.patch";
32 hash = "sha256-rNxAw6Le6QXMSirIAMhMmqVgNJLq6osnEOhWrY3mTpM=";
43 nativeBuildInputs = [ qmake ];
45 qmakeFlags = [ "openBrf.pro" ];
47 env.NIX_CFLAGS_COMPILE = "-isystem ${lib.getDev eigen}/include/eigen3";
50 sed -i 's,^VCGLIB .*,VCGLIB = ${vcg}/include,' openBrf.pro
54 install -Dm755 openBrf $out/share/openBrf/openBrf
55 install -Dm644 carry_positions.txt $out/share/openBrf/carry_positions.txt
56 install -Dm644 reference.brf $out/share/openBrf/reference.brf
68 $out/share/openBrf/openBrf
71 ln -s "$out/share/openBrf/openBrf" "$out/bin/openBrf"
77 description = "Tool to edit resource files (BRF)";
78 mainProgram = "openBrf";
79 homepage = "https://github.com/cfcohen/openbrf";
80 maintainers = with lib.maintainers; [ abbradar ];
81 license = licenses.free;
82 platforms = platforms.linux;