31 lines
754 B
Nix
31 lines
754 B
Nix
{ lib, stdenv, fetchFromGitHub, wrapQtAppsHook, qmake, qtbase, qtwebengine, qtwayland
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "simc";
|
|
version = "b25fae6260d301894979ef0f0142c3581eb0ef4f";
|
|
|
|
src = fetchFromGitHub rec {
|
|
owner = "simulationcraft";
|
|
repo = "simc";
|
|
rev = "b25fae6260d301894979ef0f0142c3581eb0ef4f";
|
|
hash = "sha256-H8Miq/kZ+hWVvsugrSE5/i/CyhgZ7pD9kSdfC64rdPQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ wrapQtAppsHook qmake qtwebengine qtbase ];
|
|
|
|
buildInputs = [ 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
|
|
'';
|
|
|
|
} |