From 43af271ac6171902cf1953cec7e5f926a33695a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 2 Feb 2014 15:04:46 +0100 Subject: [PATCH] siege: expression cleanup --- pkgs/tools/networking/siege/default.nix | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/pkgs/tools/networking/siege/default.nix b/pkgs/tools/networking/siege/default.nix index a8dd147f367e..fee3db878ac7 100644 --- a/pkgs/tools/networking/siege/default.nix +++ b/pkgs/tools/networking/siege/default.nix @@ -1,18 +1,19 @@ -{ stdenv, fetchurl, lib }: -let - version = "3.0.6"; - baseName = "siege"; -in stdenv.mkDerivation rec { - name = "${baseName}-${version}"; +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "siege-3.0.6"; + src = fetchurl { url = "http://www.joedog.org/pub/siege/${name}.tar.gz"; sha256 = "0nwcj2s804z7yd20pa0cl010m0qgf22a02305i9jwxynwdj9kdvq"; }; - meta = { - description = "HTTP load tester"; - maintainers = with lib.maintainers; [ ocharles raskin ]; - platforms = with lib.platforms; linux; - license = with lib.licenses; gpl2Plus; - }; + NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lgcc_s"; + + meta = with stdenv.lib; { + description = "HTTP load tester"; + maintainers = with maintainers; [ ocharles raskin ]; + platforms = platforms.linux; + license = licenses.gpl2Plus; + }; }