2021-03-16 09:55:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dxa";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.1.5";
|
2021-03-16 09:55:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-04-17 00:35:05 +00:00
|
|
|
urls = [
|
|
|
|
"https://www.floodgap.com/retrotech/xa/dists/${pname}-${version}.tar.gz"
|
|
|
|
"https://www.floodgap.com/retrotech/xa/dists/unsupported/${pname}-${version}.tar.gz"
|
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-jkDtd4FlgfmtlaysLtaaL7KseFDkM9Gc1oQZOkWCZ5k=";
|
2021-03-16 09:55:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-03-19 17:17:44 +00:00
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "CC = gcc" "CC = ${stdenv.cc.targetPrefix}cc"
|
2021-03-16 09:55:35 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|