2024-06-05 15:53:02 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rasm";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.2.6";
|
2024-06-05 15:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "EdouardBERGE";
|
|
|
|
repo = "rasm";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-DX+i9G+HK0Iek6qmsYQFbieHUtRazKkcyv+gYQ748X0=";
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# by default the EXEC variable contains `rasm.exe`
|
|
|
|
makeFlags = [ "EXEC=rasm" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dt $out/bin rasm
|
|
|
|
'';
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "http://rasm.wikidot.com/english-index:home";
|
|
|
|
description = "Z80 assembler";
|
|
|
|
mainProgram = "rasm";
|
|
|
|
# use -n option to display all licenses
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.mit; # expat version
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
2024-07-27 06:49:29 +00:00
|
|
|
platforms = lib.platforms.all;
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
|
|
|
}
|