dxa: refactor

This commit is contained in:
Anderson Torres 2023-02-21 09:12:35 -03:00
parent d8687b3788
commit c1ed7f0a2e

View file

@ -4,14 +4,14 @@
, installShellFiles
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (self: {
pname = "dxa";
version = "0.1.5";
src = fetchurl {
urls = [
"https://www.floodgap.com/retrotech/xa/dists/${pname}-${version}.tar.gz"
"https://www.floodgap.com/retrotech/xa/dists/unsupported/${pname}-${version}.tar.gz"
"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=";
};
@ -27,17 +27,18 @@ stdenv.mkDerivation rec {
installPhase = ''
runHook preInstall
install -d $out/bin/
install dxa $out/bin/
install -Dm755 -T dxa $out/bin/dxa
installManPage dxa.1
runHook postInstall
'';
meta = with lib; {
meta = {
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;
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = with lib.platforms; unix;
};
}
})