nixpkgs/pkgs/development/compilers/xa/dxa.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1010 B
Nix
Raw Normal View History

2021-03-13 03:44:51 +00:00
{ lib
, stdenv
, fetchurl
, installShellFiles
}:
2023-02-21 12:12:35 +00:00
stdenv.mkDerivation (self: {
2021-03-13 03:44:51 +00:00
pname = "dxa";
2022-07-30 16:07:00 +00:00
version = "0.1.5";
2021-03-13 03:44:51 +00:00
src = fetchurl {
2021-03-19 13:02:07 +00:00
urls = [
2023-02-21 12:12:35 +00:00
"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"
2021-03-19 13:02:07 +00:00
];
2022-07-30 16:07:00 +00:00
hash = "sha256-jkDtd4FlgfmtlaysLtaaL7KseFDkM9Gc1oQZOkWCZ5k=";
2021-03-13 03:44:51 +00:00
};
nativeBuildInputs = [ installShellFiles ];
dontConfigure = true;
postPatch = ''
substituteInPlace Makefile \
--replace "CC = gcc" "CC = ${stdenv.cc.targetPrefix}cc"
2021-03-13 03:44:51 +00:00
'';
installPhase = ''
runHook preInstall
2023-02-21 12:12:35 +00:00
install -Dm755 -T dxa $out/bin/dxa
2021-03-13 03:44:51 +00:00
installManPage dxa.1
2023-02-21 12:12:35 +00:00
2021-03-13 03:44:51 +00:00
runHook postInstall
'';
2023-02-21 12:12:35 +00:00
meta = {
2021-03-13 03:44:51 +00:00
homepage = "https://www.floodgap.com/retrotech/xa/";
description = "Andre Fachat's open-source 6502 disassembler";
2023-02-21 12:12:35 +00:00
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = with lib.platforms; unix;
2021-03-13 03:44:51 +00:00
};
2023-02-21 12:12:35 +00:00
})