diff options
author | Bignaux Ronan <ronan@aimao.org> | 2019-11-16 22:32:12 +0100 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2019-12-16 11:28:34 -0800 |
commit | 3ad650a14b0477a0df2795abe185c66849a5012d (patch) | |
tree | 5116b85d4d8be3307348e1681cb55fe03ad40ddc /pkgs/development/compilers/rasm | |
parent | 9af73d932662e91312493f7721601a262b15f801 (diff) |
rasm: init at 0.116
Diffstat (limited to 'pkgs/development/compilers/rasm')
-rw-r--r-- | pkgs/development/compilers/rasm/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/compilers/rasm/default.nix b/pkgs/development/compilers/rasm/default.nix new file mode 100644 index 0000000000000..ced0855597c17 --- /dev/null +++ b/pkgs/development/compilers/rasm/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, unzip }: + +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 + cc rasm_v*.c -O2 -lm -lrt -march=native -o rasm + ''; + + installPhase = '' + install -Dt $out/bin rasm + ''; + + meta = with stdenv.lib; { + homepage = "http://www.roudoudou.com/rasm/"; + description = "Z80 assembler"; + # use -n option to display all licenses + license = licenses.mit; # expat version + maintainers = [ maintainers.genesis ]; + platforms = platforms.linux; + }; +} |