2021-01-22 12:25:31 +01:00
|
|
|
{ lib, stdenv, fetchurl, unzip }:
|
2019-11-16 22:32:12 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rasm";
|
|
|
|
version = "0.117";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "www.roudoudou.com/export/cpc/rasm/${pname}_v0117_src.zip";
|
|
|
|
sha256 = "1hwily4cfays59qm7qd1ax48i7cpbxhs5l9mfpyn7m2lxsfqrl3z";
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
# according to official documentation
|
2020-04-07 17:47:10 +02:00
|
|
|
cc rasm_v*.c -O2 -lm -lrt -o rasm
|
2019-11-16 22:32:12 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dt $out/bin rasm
|
|
|
|
'';
|
|
|
|
|
2021-01-22 12:25:31 +01:00
|
|
|
meta = with lib; {
|
2019-11-16 22:32:12 +01:00
|
|
|
homepage = "http://www.roudoudou.com/rasm/";
|
|
|
|
description = "Z80 assembler";
|
|
|
|
# use -n option to display all licenses
|
|
|
|
license = licenses.mit; # expat version
|
2020-11-17 17:50:53 +01:00
|
|
|
maintainers = [ ];
|
2019-11-16 22:32:12 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|