2020-04-09 02:56:26 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dasm";
|
2020-09-25 05:53:35 +01:00
|
|
|
version = "2.20.14";
|
2020-04-09 02:56:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dasm-assembler";
|
|
|
|
repo = "dasm";
|
|
|
|
rev = version;
|
2020-09-25 05:53:35 +01:00
|
|
|
sha256 = "09hzw228j43a78624bmq9cam7y1fjs48d3hpjqh2gn8iwnyk0pnp";
|
2020-04-09 02:56:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = false;
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install bin/* $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
patchShebangs ./test/
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkTarget = "test";
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Assembler for 6502 and other 8-bit microprocessors";
|
|
|
|
homepage = "https://dasm-assembler.github.io";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.jwatt ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|