mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
commit
f3ac3a265b
1 changed files with 11 additions and 50 deletions
|
@ -1,51 +1,12 @@
|
||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl }:
|
||||||
, ...}:
|
let
|
||||||
builderDefsPackage
|
version = "3.0.2";
|
||||||
(a :
|
baseName = "siege";
|
||||||
let
|
in stdenv.mkDerivation rec {
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
name = "${baseName}-${version}";
|
||||||
[];
|
src = fetchurl {
|
||||||
|
url = "http://www.joedog.org/pub/siege/${name}.tar.gz";
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
sha256 = "0b86rvcrjxy6h9w32bhpcm1gwmn223mf9f30dfsnaw51w90kn716";
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
||||||
sourceInfo = rec {
|
|
||||||
baseName="siege";
|
|
||||||
version="2.70";
|
|
||||||
name="${baseName}-${version}";
|
|
||||||
url="ftp://ftp.joedog.org/pub/siege/${name}.tar.gz";
|
|
||||||
hash="14fxfmfsqwyahc91w4vn3n8hvclf78n4k1xllqsrpvjb5asvrd1w";
|
|
||||||
};
|
};
|
||||||
in
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s";
|
||||||
rec {
|
}
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
|
||||||
phaseNames = ["doConfigure" "createDirs" "doMakeInstall"];
|
|
||||||
|
|
||||||
createDirs = a.fullDepEntry ''
|
|
||||||
mkdir -p "$out/"{bin,lib,share/man,etc}
|
|
||||||
'' ["defEnsureDir"];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "HTTP load tester";
|
|
||||||
maintainers = with a.lib.maintainers;
|
|
||||||
[
|
|
||||||
raskin
|
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
license = a.lib.licenses.gpl2Plus;
|
|
||||||
};
|
|
||||||
passthru = {
|
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://www.joedog.org/index/siege-home";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue