Merge pull request #119525 from fabaff/bump-siege

siege: 4.0.7 -> 4.0.8
This commit is contained in:
Sandro 2021-04-15 23:15:32 +02:00 committed by GitHub
commit 433b4b1f51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,16 +1,25 @@
{ lib, stdenv, fetchurl, openssl, zlib }:
{ lib
, stdenv
, fetchurl
, openssl
, zlib
}:
stdenv.mkDerivation rec {
name = "siege-4.0.7";
pname = "siege";
version = "4.0.8";
src = fetchurl {
url = "http://download.joedog.org/siege/${name}.tar.gz";
sha256 = "1y3dnl1ziw0c0d4nw30aj0sdmjvarn4xfxgfkswffwnkm8z5p9xz";
url = "http://download.joedog.org/siege/${pname}-${version}.tar.gz";
sha256 = "01qhw52kyqwidp5bckw4xmz4ldqdwkjci7k421qm68kk0mx9l48g";
};
NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lgcc_s";
buildInputs = [ openssl zlib ];
buildInputs = [
openssl
zlib
];
prePatch = ''
sed -i -e 's/u_int32_t/uint32_t/g' -e '1i#include <stdint.h>' src/hash.c