depot/third_party/nixpkgs/pkgs/misc/emulators/dlx/default.nix
Default email bba55970ba Project import generated by Copybara.
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
2021-04-05 17:23:46 +02:00

29 lines
854 B
Nix

{ lib, stdenv, fetchzip }:
stdenv.mkDerivation rec {
pname = "dlx";
version = "2012-07-08";
src = fetchzip {
url = "https://www.davidviner.com/zip/dlx/dlx.zip";
sha256 = "0508linnar9ivy3xr99gzrb2l027ngx12dlxaxs7w67cnwqnb0dg";
};
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "LINK=${stdenv.cc.targetPrefix}cc" "CFLAGS=-O2" ];
hardeningDisable = [ "format" ];
installPhase = ''
mkdir -p $out/include/dlx $out/share/dlx/{examples,doc} $out/bin
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/
'';
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;
};
}