blob: c131e4b79980cf9b9abd88e5d86ac8375e421e7d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
pname = "rasm";
version = "0.117";
src = fetchurl {
url = "http://www.roudoudou.com/export/cpc/rasm/${pname}_v0117_src.zip";
sha256 = "1hwily4cfays59qm7qd1ax48i7cpbxhs5l9mfpyn7m2lxsfqrl3z";
};
sourceRoot = ".";
nativeBuildInputs = [ unzip ];
buildPhase = ''
# according to official documentation
${stdenv.cc.targetPrefix}cc rasm_v*.c -O2 -lm -o rasm
'';
installPhase = ''
install -Dt $out/bin rasm
'';
meta = with lib; {
homepage = "http://www.roudoudou.com/rasm/";
description = "Z80 assembler";
mainProgram = "rasm";
# use -n option to display all licenses
license = licenses.mit; # expat version
maintainers = with lib.maintainers; [ sigmanificient ];
platforms = platforms.all;
};
}
|