bandwidth: Add package

This commit is contained in:
William A. Kennington III 2015-04-23 14:45:34 -07:00
parent 83b5b5ca6c
commit 4277d71a83
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ stdenv, fetchurl, nasm }:
let
arch =
if stdenv.system == "x86_64-linux" then "bandwidth64"
else if stdenv.system == "i686-linux" then "bandwidth32"
else if stdenv.system == "x86_64-darwin" then "bandwidth-mac64"
else if stdenv.system == "i686-darwin" then "bandwidth-mac32"
else if stdenv.system == "i686-cygwin" then "bandwidth-win32"
else null;
in
stdenv.mkDerivation rec {
name = "bandwidth-1.1b";
src = fetchurl {
url = "http://zsmith.co/archives/${name}.tar.gz";
sha256 = "01c3ca0x3rh65j1s2g6cg5xr9fvm0lp2wpmv71vhz55xwqqqmiz8";
};
buildInputs = [ nasm ];
buildFlags = [ arch ];
installPhase = ''
mkdir -p $out/bin
cp ${arch} $out/bin
ln -s ${arch} $out/bin/bandwidth
'';
meta = with stdenv.lib; {
homepage = https://zsmith.co/bandwidth.html;
description = "and artificial benchmark for identifying weaknesses in the memory subsystem";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ wkennington ];
};
}

View file

@ -10128,6 +10128,8 @@ let
backintime = backintime-qt4;
bandwidth = callPackage ../tools/misc/bandwidth { };
bar = callPackage ../applications/window-managers/bar { };
baresip = callPackage ../applications/networking/instant-messengers/baresip {