2016-09-24 02:54:52 +01:00
|
|
|
{ stdenv, fetchpatch, fetchurl, yacc }:
|
2016-02-04 06:37:28 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
version = "2.3.1";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "as31-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
name = "as31-${version}.tar.gz"; # Nix doesn't like the colons in the URL
|
|
|
|
url = "http://wiki.erazor-zone.de/_media/wiki:projects:linux:as31:as31-${version}.tar.gz";
|
|
|
|
sha256 = "0mbk6z7z03xb0r0ccyzlgkjdjmdzknck4yxxmgr9k7v8f5c348fd";
|
|
|
|
};
|
2016-03-05 02:54:24 +00:00
|
|
|
|
|
|
|
buildInputs = [ yacc ];
|
|
|
|
|
2016-09-24 02:54:52 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2018-04-22 16:44:09 +01:00
|
|
|
name = "CVE-2012-0808.patch";
|
2016-09-24 02:54:52 +01:00
|
|
|
url = "https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=655496;filename=as31-mkstemps.patch;msg=5";
|
|
|
|
sha256 = "0iia4wa8m141bwz4588yxb1dp2qwhapcii382sncm6jvwyngwh21";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-02-04 06:37:28 +00:00
|
|
|
preConfigure = ''
|
|
|
|
chmod +x ./configure
|
|
|
|
'';
|
|
|
|
|
2016-03-05 02:54:24 +00:00
|
|
|
postConfigure = ''
|
|
|
|
rm as31/parser.c
|
|
|
|
'';
|
|
|
|
|
2016-02-04 06:37:28 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://wiki.erazor-zone.de/wiki:projects:linux:as31;
|
2016-02-04 06:37:28 +00:00
|
|
|
description = "An 8031/8051 assembler by Ken Stauffer and Theo Deraadt which produces a variety of object code output formats";
|
|
|
|
maintainers = with maintainers; [ aneeshusa ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2016-02-04 06:37:28 +00:00
|
|
|
};
|
|
|
|
}
|