nix/pkgs/ericw-tools-latest.nix

45 lines
834 B
Nix
Raw Normal View History

2024-07-10 15:01:17 +02:00
{
lib,
stdenv,
fetchzip,
autoPatchelfHook,
qt5,
tbb,
...
}:
stdenv.mkDerivation rec {
pname = "ericw-tools-latest";
version = "2.0.0-alpha8";
src = fetchzip {
url = "https://github.com/ericwa/ericw-tools/releases/download/2.0.0-alpha8/ericw-tools-2.0.0-alpha8-Linux.zip";
hash = "sha256-F1DyyWNeWAiVEk8Bv1ZFs1TuYyfkwCc5jd+ulA+qRhA=";
stripRoot = false;
};
nativeBuildInputs = [
qt5.wrapQtAppsHook
autoPatchelfHook
];
buildInputs = [
qt5.qtbase
stdenv.cc.cc
tbb
];
installPhase = ''
runHook preInstall
for lib in libembree3.so.3 libtbb.so.12; do
install -m755 -D $lib $out/lib/$lib
done
for tool in bspinfo lightpreview qbsp vis maputil light bsputil; do
install -m755 -D $tool $out/bin/$tool
done
runHook postInstall
'';
}