From 8c12d7db633cc421cd96690d077461cf45195334 Mon Sep 17 00:00:00 2001 From: sadbeast Date: Thu, 30 May 2024 00:47:47 +0000 Subject: oh no what have i done --- pkgs/fab-agon-emulator/default.nix | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/fab-agon-emulator/default.nix (limited to 'pkgs/fab-agon-emulator') 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 + ''; +} -- cgit v1.2.3