[Init]
This commit is contained in:
31
pkgs/custom/simc.nix
Normal file
31
pkgs/custom/simc.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ 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
|
||||
'';
|
||||
|
||||
}
|
6
pkgs/default.nix
Normal file
6
pkgs/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:{
|
||||
simc = (pkgs.qt6.callPackage ./custom/simc.nix { });
|
||||
}
|
26
pkgs/overlay.nix
Executable file
26
pkgs/overlay.nix
Executable file
@@ -0,0 +1,26 @@
|
||||
{}:
|
||||
[(self: super: {
|
||||
openttd-jgrpp = super.openttd-jgrpp.overrideAttrs (old: rec{
|
||||
version = "0.53.3";
|
||||
|
||||
src = super.fetchFromGitHub rec {
|
||||
owner = "JGRennison";
|
||||
repo = "OpenTTD-patches";
|
||||
rev = "jgrpp-0.53.3";
|
||||
hash = "sha256-xpo4E07ifWUZy5z78Fwm1SpLP3wUBaBreZYbJuiNH3w=";
|
||||
};
|
||||
});
|
||||
|
||||
androidStudioPackages.canary = super.androidStudioPackages.canary.overrideAttrs (old: rec{
|
||||
version = "2023.1.1.5";
|
||||
channel = "canary";
|
||||
drvName = "android-studio-${channel}-${version}";
|
||||
filename = "android-studio-${version}-linux.tar.gz";
|
||||
name = "${drvName}-unwrapped";
|
||||
|
||||
src = super.fetchurl {
|
||||
url = "https://dl.google.com/dl/android/studio/ide-zips/${version}/${filename}";
|
||||
hash = "sha256-2CnuqW15bPgA6pOXGhWonUX7pM72oYNYrHFxafmcwrM=";
|
||||
};
|
||||
});
|
||||
})]
|
Reference in New Issue
Block a user