2021-04-05 05:48:48 +01:00
|
|
|
{ lib, stdenv, fetchzip }:
|
2012-12-04 13:29:35 +00:00
|
|
|
|
2021-04-05 05:48:48 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dlx";
|
|
|
|
version = "2012-07-08";
|
2012-12-04 13:29:35 +00:00
|
|
|
|
2021-04-05 05:48:48 +01:00
|
|
|
src = fetchzip {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.davidviner.com/zip/dlx/dlx.zip";
|
2021-04-05 05:48:48 +01:00
|
|
|
sha256 = "0508linnar9ivy3xr99gzrb2l027ngx12dlxaxs7w67cnwqnb0dg";
|
2012-12-04 13:29:35 +00:00
|
|
|
};
|
|
|
|
|
2021-02-16 10:30:38 +00:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "LINK=${stdenv.cc.targetPrefix}cc" "CFLAGS=-O2" ];
|
2016-08-04 08:25:56 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2012-12-04 13:29:35 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include/dlx $out/share/dlx/{examples,doc} $out/bin
|
2021-04-05 05:48:48 +01:00
|
|
|
mv masm mon dasm $out/bin/
|
|
|
|
mv *.i auto.a $out/include/dlx/
|
|
|
|
mv *.a *.m $out/share/dlx/examples/
|
|
|
|
mv README.txt MANUAL.TXT $out/share/dlx/doc/
|
2012-12-04 13:29:35 +00:00
|
|
|
'';
|
|
|
|
|
2021-04-05 05:48:48 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.davidviner.com/dlx.html?name=DLX+Simulator";
|
|
|
|
description = "An DLX simulator written in C";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
platforms = platforms.linux;
|
2012-12-04 13:29:35 +00:00
|
|
|
};
|
|
|
|
}
|