depot/third_party/nixpkgs/pkgs/development/compilers/xa/dxa.nix
Default email 5557ff764c Project import generated by Copybara.
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
2023-02-22 11:55:15 +01:00

44 lines
1,010 B
Nix

{ lib
, stdenv
, fetchurl
, installShellFiles
}:
stdenv.mkDerivation (self: {
pname = "dxa";
version = "0.1.5";
src = fetchurl {
urls = [
"https://www.floodgap.com/retrotech/xa/dists/dxa-${self.version}.tar.gz"
"https://www.floodgap.com/retrotech/xa/dists/unsupported/dxa-${self.version}.tar.gz"
];
hash = "sha256-jkDtd4FlgfmtlaysLtaaL7KseFDkM9Gc1oQZOkWCZ5k=";
};
nativeBuildInputs = [ installShellFiles ];
dontConfigure = true;
postPatch = ''
substituteInPlace Makefile \
--replace "CC = gcc" "CC = ${stdenv.cc.targetPrefix}cc"
'';
installPhase = ''
runHook preInstall
install -Dm755 -T dxa $out/bin/dxa
installManPage dxa.1
runHook postInstall
'';
meta = {
homepage = "https://www.floodgap.com/retrotech/xa/";
description = "Andre Fachat's open-source 6502 disassembler";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = with lib.platforms; unix;
};
})