2021-01-15 14:21:58 +01:00
|
|
|
{ lib, stdenv, fetchurl, unzip }:
|
2012-12-04 14:29:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "dlx-2012.07.08";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://www.davidviner.com/zip/dlx/dlx.zip";
|
2012-12-04 14:29:35 +01:00
|
|
|
sha256 = "0q5hildq2xcig7yrqi26n7fqlanyssjirm7swy2a9icfxpppfpkn";
|
|
|
|
};
|
|
|
|
|
2021-02-16 11:30:38 +01:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2012-12-04 14:29:35 +01:00
|
|
|
|
2021-02-16 11:30:38 +01:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "LINK=${stdenv.cc.targetPrefix}cc" "CFLAGS=-O2" ];
|
2012-12-05 16:44:04 +01:00
|
|
|
|
2016-08-04 09:25:56 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2012-12-04 14:29:35 +01: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 16:43:49 +01:00
|
|
|
mv -v *.a *.m $out/share/dlx/examples/
|
2012-12-04 14:29:35 +01:00
|
|
|
mv -v README.txt MANUAL.TXT $out/share/dlx/doc/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.davidviner.com/dlx.php";
|
2012-12-04 14:29:35 +01:00
|
|
|
description = "DLX Simulator";
|
2021-01-15 14:21:58 +01:00
|
|
|
license = lib.licenses.gpl2;
|
2021-02-16 11:30:38 +01:00
|
|
|
platforms = lib.platforms.all;
|
2012-12-04 14:29:35 +01:00
|
|
|
};
|
|
|
|
}
|