summaryrefslogtreecommitdiffstats
path: root/packages/aurora4x
diff options
context:
space:
mode:
Diffstat (limited to 'packages/aurora4x')
-rw-r--r--packages/aurora4x/default.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/packages/aurora4x/default.nix b/packages/aurora4x/default.nix
new file mode 100644
index 0000000..adc1a53
--- /dev/null
+++ b/packages/aurora4x/default.nix
@@ -0,0 +1,57 @@
+{
+ lib,
+ stdenv,
+ fetchurl,
+ makeDesktopItem,
+ copyDesktopItems,
+ mono,
+ unrar
+}:
+
+stdenv.mkDerivation rec {
+ name = "aurora4x-251";
+ version = "251";
+
+ srcs = [
+ (fetchurl {
+ url = "https://www.pentarch.org/steve/Aurora1130Full.rar";
+ hash = "sha256-QaTka9fNXjK/PgiF0S5EX+1dtUGWitcqPQYr54qDYAQ=";
+ })
+ (fetchurl {
+ url = "https://www.pentarch.org/steve/Aurora260.rar";
+ hash = "sha256-AG10u3oVX1rN7FQERVg36l7JBocvpF19/7tvavxH5QQ=";
+ })
+ ];
+
+ nativeBuildInputs = [
+ copyDesktopItems
+ ];
+
+ buildInputs = [
+ unrar
+ ];
+
+ runtimeLibs = lib.makeLibraryPath (
+ [
+ mono
+ ]
+ );
+
+ desktopItems = [
+ (makeDesktopItem {
+ name = "aurora4x";
+ desktopName = "Aurora 4X";
+ exec = "aurora4x";
+ })
+ ];
+
+ unpackCmd = "unrar x -o+ $curSrc";
+
+ installPhase = ''
+ runHook preInstall
+
+ mkdir -p $out/share/aurora4x $out/bin
+
+ runHook postInstall
+ '';
+}