From 3ad650a14b0477a0df2795abe185c66849a5012d Mon Sep 17 00:00:00 2001 From: Bignaux Ronan Date: Sat, 16 Nov 2019 22:32:12 +0100 Subject: [PATCH] rasm: init at 0.116 --- pkgs/development/compilers/rasm/default.nix | 33 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/compilers/rasm/default.nix diff --git a/pkgs/development/compilers/rasm/default.nix b/pkgs/development/compilers/rasm/default.nix new file mode 100644 index 000000000000..ced0855597c1 --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ea2cea457eaf..245566f0aa21 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8620,6 +8620,8 @@ in qbe = callPackage ../development/compilers/qbe { }; + rasm = callPackage ../development/compilers/rasm { }; + rgbds = callPackage ../development/compilers/rgbds { }; rtags = callPackage ../development/tools/rtags {