1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 18:03:22 +00:00
nixpkgs/pkgs/development/compilers/rasm/default.nix

34 lines
760 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, unzip }:
2019-11-16 21:32:12 +00: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
2021-03-03 11:51:40 +00:00
${stdenv.cc.targetPrefix}cc rasm_v*.c -O2 -lm -o rasm
2019-11-16 21:32:12 +00:00
'';
installPhase = ''
install -Dt $out/bin rasm
'';
meta = with lib; {
2019-11-16 21:32:12 +00:00
homepage = "http://www.roudoudou.com/rasm/";
description = "Z80 assembler";
# use -n option to display all licenses
license = licenses.mit; # expat version
maintainers = [ ];
2021-03-03 11:51:40 +00:00
platforms = platforms.all;
2019-11-16 21:32:12 +00:00
};
}