From e8bb52b12d02fe4dbe96688e84951d52340e0565 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Wed, 23 Nov 2022 15:24:04 -0500 Subject: [PATCH] pkgs: add Sim65 --- pkgs/default.nix | 2 ++ pkgs/sim65.nix | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/sim65.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 9025ff6..620714b 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -10,4 +10,6 @@ final: prev: { qtile-unstable = final.callPackage ./qtile.nix { source = final.sources.qtile; }; mcaselector = final.callPackage ./mcaselector.nix { }; + + sim65 = final.callPackage ./sim65.nix { }; } diff --git a/pkgs/sim65.nix b/pkgs/sim65.nix new file mode 100644 index 0000000..121197c --- /dev/null +++ b/pkgs/sim65.nix @@ -0,0 +1,36 @@ +{ stdenv +, fetchFromGitHub +, lib +, wxGTK32 +}: + +stdenv.mkDerivation { + name = "sim65"; + + src = fetchFromGitHub { + owner = "sittner"; + repo = "sim65"; + rev = "8557843c93e46e347f6f9d788faef8f302ead560"; + sha256 = "sha256-n+THZuD77gtZ5nMcdaq4Xup95NjVPFiMk0zsTOGiXzc="; + }; + + buildInputs = [ wxGTK32 ]; + + installPhase = '' + mkdir -p $out/bin + cp sim65 $out/bin + ''; + + meta = with lib; { + description = "Sim65 is a 65c02 simulator and debugger for Linux/GTK systems"; + longDescription = '' + Sim65 is a 65c02 simulator and debugger for Linux/GTK systems. + You can load binary images or S-record files containing 65c02 code and execute it. + Sim65 allows you to see and alter registers and memory, set breakpoints, single step, and a few other things. + The program is immature: there are no peripherals, for example, but it suffices for simple simulation purposes. + ''; + homepage = "http://www.wsxyz.net/sim65/"; + license = licenses.free; + maintainers = with maintainers; [ infinidoge ]; + }; +}