aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/fab-agon-emulator/default.nix
diff options
context:
space:
mode:
authorsadbeast <sadbeast@sadbeast.com>2024-05-30 00:47:47 +0000
committersadbeast <sadbeast@sadbeast.com>2025-01-11 12:20:20 -0800
commit8c12d7db633cc421cd96690d077461cf45195334 (patch)
treec3112acb5cd045ceeb2ada81a281a5991b4c501d /pkgs/fab-agon-emulator/default.nix
downloadnix-config-8c12d7db633cc421cd96690d077461cf45195334.tar.gz
nix-config-8c12d7db633cc421cd96690d077461cf45195334.tar.bz2
oh no what have i doneHEADmain
Diffstat (limited to 'pkgs/fab-agon-emulator/default.nix')
-rw-r--r--pkgs/fab-agon-emulator/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/fab-agon-emulator/default.nix b/pkgs/fab-agon-emulator/default.nix
new file mode 100644
index 0000000..0d0c0a1
--- /dev/null
+++ b/pkgs/fab-agon-emulator/default.nix
@@ -0,0 +1,40 @@
+{
+ stdenv,
+ lib,
+ fetchurl,
+}:
+stdenv.mkDerivation rec {
+ pname = "fab-agon-emulator";
+ version = "0.9.77";
+
+ dontBuild = true;
+
+ meta = with lib; {
+ description = "An emulator of the Agon Light, Agon Light 2, and Agon Console8 8-bit computers.";
+ homepage = "https://github.com/tomm/fab-agon-emulator";
+ license = licenses.gpl3;
+ platforms = platforms.linux;
+ sourceProvenance = with sourceTypes; [binaryNativeCode];
+ };
+
+ src = fetchurl {
+ url = "https://github.com/tomm/fab-agon-emulator/releases/download/0.9.77/fab-agon-emulator-v0.9.77-linux-x86_64.tar.bz2";
+ sha256 = "sha256-+Ua3uT7AiCyV5TOyVzepQnh9m0TfT9uBXUxUHn1RG+s=";
+ };
+
+ # unpackPhase = ''
+ # tar xf $src
+ # '';
+
+ installPhase = ''
+ runHook preInstall
+
+ mkdir -p $out/bin
+ cp fab-agon-emulator $out/bin
+ cp agon-cli-emulator $out/bin
+ cp -r firmware $out
+ cp -r sdcard $out
+
+ runHook postInstall
+ '';
+}