diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2025-11-29 12:02:28 -0500 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-11-29 12:02:28 -0500 |
| commit | 968c8b2ad3459c9834c3d4ccb799031f9be5b6ca (patch) | |
| tree | c90b69158e92c445ed491d26e674602c2d1618f6 /packages/aurora4x | |
| parent | 34a81b72d264acc99972e4a8e77be33e713486c8 (diff) | |
| download | nix-config-master.tar.gz nix-config-master.tar.bz2 nix-config-master.zip | |
Diffstat (limited to 'packages/aurora4x')
| -rw-r--r-- | packages/aurora4x/default.nix | 57 |
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 + ''; +} |
