diff options
author | sadbeast <sadbeast@sadbeast.com> | 2024-05-30 00:47:47 +0000 |
---|---|---|
committer | sadbeast <sadbeast@sadbeast.com> | 2025-01-11 12:20:20 -0800 |
commit | 8c12d7db633cc421cd96690d077461cf45195334 (patch) | |
tree | c3112acb5cd045ceeb2ada81a281a5991b4c501d /pkgs/fab-agon-emulator/default.nix | |
download | nix-config-main.tar.gz nix-config-main.tar.bz2 |
Diffstat (limited to 'pkgs/fab-agon-emulator/default.nix')
-rw-r--r-- | pkgs/fab-agon-emulator/default.nix | 40 |
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 + ''; +} |