nixconfig/packages/simc/default.nix

32 lines
647 B
Nix
Raw Normal View History

2023-11-04 02:28:27 +01:00
{ stdenv, fetchFromGitHub, qt6 }:
stdenv.mkDerivation rec {
pname = "simc";
version = "ae04662fca7cad8bf218cd8e43ab05631caad758";
src = fetchFromGitHub rec {
owner = "simulationcraft";
repo = pname;
rev = version;
hash = "sha256-mTo6YTgZMpfyWvdU1JEEmfmBjJlZwAgja1iliOem7mM=";
};
nativeBuildInputs =
[ qt6.wrapQtAppsHook qt6.qmake qt6.qtwebengine qt6.qtbase ];
buildInputs = [ qt6.qtwayland ];
configurePhase = ''
qmake simulationcraft.pro
'';
buildPhase = ''
SC_NO_NETWORKING=1 make -j$NIX_BUILD_CORES
'';
installPhase = ''
mkdir -p $out/bin
mv gui/SimulationCraft $out/bin
'';
}