nixpkgs/pkgs/misc/emulators/dlx/default.nix

32 lines
843 B
Nix
Raw Normal View History

2021-01-15 13:21:58 +00:00
{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation {
name = "dlx-2012.07.08";
src = fetchurl {
url = "https://www.davidviner.com/zip/dlx/dlx.zip";
sha256 = "0q5hildq2xcig7yrqi26n7fqlanyssjirm7swy2a9icfxpppfpkn";
};
2021-02-16 10:30:38 +00:00
nativeBuildInputs = [ unzip ];
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" ];
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/
mv -v *.a *.m $out/share/dlx/examples/
mv -v README.txt MANUAL.TXT $out/share/dlx/doc/
'';
meta = {
homepage = "http://www.davidviner.com/dlx.php";
description = "DLX Simulator";
2021-01-15 13:21:58 +00:00
license = lib.licenses.gpl2;
2021-02-16 10:30:38 +00:00
platforms = lib.platforms.all;
};
}