2024-06-05 15:53:02 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rasm";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "2.2.5";
|
2024-06-05 15:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "EdouardBERGE";
|
|
|
|
repo = "rasm";
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-m2XRi9RF089dBpkwcu/zgmd3XnBF4uJU5B4ec4WJ36I=";
|
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
|
|
|
};
|
|
|
|
}
|