mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, fetchpatch, fetchurl, yacc }:
|
|
|
|
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";
|
|
};
|
|
|
|
buildInputs = [ yacc ];
|
|
|
|
patches = [
|
|
# CVE-2012-0808
|
|
(fetchpatch {
|
|
name = "as31-mkstemps.patch";
|
|
url = "https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=655496;filename=as31-mkstemps.patch;msg=5";
|
|
sha256 = "0iia4wa8m141bwz4588yxb1dp2qwhapcii382sncm6jvwyngwh21";
|
|
})
|
|
];
|
|
|
|
preConfigure = ''
|
|
chmod +x ./configure
|
|
'';
|
|
|
|
postConfigure = ''
|
|
rm as31/parser.c
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://wiki.erazor-zone.de/wiki:projects:linux:as31;
|
|
description = "An 8031/8051 assembler by Ken Stauffer and Theo Deraadt which produces a variety of object code output formats";
|
|
maintainers = with maintainers; [ aneeshusa ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|