Migrate to snowfall lib
This commit is contained in:
31
packages/simc/default.nix
Normal file
31
packages/simc/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ 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
|
||||
'';
|
||||
|
||||
}
|
Reference in New Issue
Block a user