2012-12-04 13:29:35 +00:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "dlx-2012.07.08";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.davidviner.com/zip/dlx/dlx.zip";
|
2012-12-04 13:29:35 +00:00
|
|
|
sha256 = "0q5hildq2xcig7yrqi26n7fqlanyssjirm7swy2a9icfxpppfpkn";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "LINK=gcc" "CFLAGS=-O2" ];
|
2012-12-05 15:44:04 +00:00
|
|
|
|
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
|
|
|
|
mv -v masm mon dasm $out/bin/
|
|
|
|
mv -v *.i auto.a $out/include/dlx/
|
2012-12-05 15:43:49 +00:00
|
|
|
mv -v *.a *.m $out/share/dlx/examples/
|
2012-12-04 13:29:35 +00:00
|
|
|
mv -v README.txt MANUAL.TXT $out/share/dlx/doc/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.davidviner.com/dlx.php";
|
2012-12-04 13:29:35 +00:00
|
|
|
description = "DLX Simulator";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-12-04 13:29:35 +00:00
|
|
|
};
|
|
|
|
}
|