dlx: cleanup (#93655)
This commit is contained in:
parent
6760947fa3
commit
2870b314b2
|
@ -1,31 +1,29 @@
|
||||||
{ lib, stdenv, fetchurl, unzip }:
|
{ lib, stdenv, fetchzip }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "dlx-2012.07.08";
|
pname = "dlx";
|
||||||
|
version = "2012-07-08";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchzip {
|
||||||
url = "https://www.davidviner.com/zip/dlx/dlx.zip";
|
url = "https://www.davidviner.com/zip/dlx/dlx.zip";
|
||||||
sha256 = "0q5hildq2xcig7yrqi26n7fqlanyssjirm7swy2a9icfxpppfpkn";
|
sha256 = "0508linnar9ivy3xr99gzrb2l027ngx12dlxaxs7w67cnwqnb0dg";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip ];
|
|
||||||
|
|
||||||
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "LINK=${stdenv.cc.targetPrefix}cc" "CFLAGS=-O2" ];
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "LINK=${stdenv.cc.targetPrefix}cc" "CFLAGS=-O2" ];
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/include/dlx $out/share/dlx/{examples,doc} $out/bin
|
mkdir -p $out/include/dlx $out/share/dlx/{examples,doc} $out/bin
|
||||||
mv -v masm mon dasm $out/bin/
|
mv masm mon dasm $out/bin/
|
||||||
mv -v *.i auto.a $out/include/dlx/
|
mv *.i auto.a $out/include/dlx/
|
||||||
mv -v *.a *.m $out/share/dlx/examples/
|
mv *.a *.m $out/share/dlx/examples/
|
||||||
mv -v README.txt MANUAL.TXT $out/share/dlx/doc/
|
mv README.txt MANUAL.TXT $out/share/dlx/doc/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "http://www.davidviner.com/dlx.php";
|
homepage = "https://www.davidviner.com/dlx.html?name=DLX+Simulator";
|
||||||
description = "DLX Simulator";
|
description = "An DLX simulator written in C";
|
||||||
license = lib.licenses.gpl2;
|
license = licenses.gpl2Only;
|
||||||
platforms = lib.platforms.all;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue