diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2021-03-13 00:44:51 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2021-03-14 14:03:41 -0300 |
commit | 9ecaf3fd2ed75eca7ff1198afe2511b83d9c3305 (patch) | |
tree | cdf9b7594b81d2c31c2cb1e970046c78d91e6d2d /pkgs/development/compilers/xa | |
parent | 7173fb6a775a502c3637f5f6f672ddd69cf36dfe (diff) |
dxa: init at 0.1.4
Diffstat (limited to 'pkgs/development/compilers/xa')
-rw-r--r-- | pkgs/development/compilers/xa/dxa.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/compilers/xa/dxa.nix b/pkgs/development/compilers/xa/dxa.nix new file mode 100644 index 0000000000000..e0ff060de8d71 --- /dev/null +++ b/pkgs/development/compilers/xa/dxa.nix @@ -0,0 +1,41 @@ +{ lib +, stdenv +, fetchurl +, installShellFiles +}: + +stdenv.mkDerivation rec { + pname = "dxa"; + version = "0.1.4"; + + src = fetchurl { + url = "https://www.floodgap.com/retrotech/xa/dists/${pname}-${version}.tar.gz"; + hash = "sha256-C0rgwK51Ij9EZCm9GeiVnWIkEkse0d60ok8G9hm2a5U="; + }; + + nativeBuildInputs = [ installShellFiles ]; + + dontConfigure = true; + + postPatch = '' + substituteInPlace \ + --replace "CC = gcc" "CC = cc' \ + Makefile + ''; + + installPhase = '' + runHook preInstall + install -d $out/bin/ + install dxa $out/bin/ + installManPage dxa.1 + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://www.floodgap.com/retrotech/xa/"; + description = "Andre Fachat's open-source 6502 disassembler"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ AndersonTorres ]; + platforms = with platforms; unix; + }; +} |