lol

bandwidth: Add package

+39
+37
pkgs/tools/misc/bandwidth/default.nix
··· 1 + { stdenv, fetchurl, nasm }: 2 + 3 + let 4 + arch = 5 + if stdenv.system == "x86_64-linux" then "bandwidth64" 6 + else if stdenv.system == "i686-linux" then "bandwidth32" 7 + else if stdenv.system == "x86_64-darwin" then "bandwidth-mac64" 8 + else if stdenv.system == "i686-darwin" then "bandwidth-mac32" 9 + else if stdenv.system == "i686-cygwin" then "bandwidth-win32" 10 + else null; 11 + in 12 + stdenv.mkDerivation rec { 13 + name = "bandwidth-1.1b"; 14 + 15 + src = fetchurl { 16 + url = "http://zsmith.co/archives/${name}.tar.gz"; 17 + sha256 = "01c3ca0x3rh65j1s2g6cg5xr9fvm0lp2wpmv71vhz55xwqqqmiz8"; 18 + }; 19 + 20 + buildInputs = [ nasm ]; 21 + 22 + buildFlags = [ arch ]; 23 + 24 + installPhase = '' 25 + mkdir -p $out/bin 26 + cp ${arch} $out/bin 27 + ln -s ${arch} $out/bin/bandwidth 28 + ''; 29 + 30 + meta = with stdenv.lib; { 31 + homepage = https://zsmith.co/bandwidth.html; 32 + description = "and artificial benchmark for identifying weaknesses in the memory subsystem"; 33 + license = licenses.mit; 34 + platforms = platforms.unix; 35 + maintainers = with maintainers; [ wkennington ]; 36 + }; 37 + }
+2
pkgs/top-level/all-packages.nix
··· 10128 10128 10129 10129 backintime = backintime-qt4; 10130 10130 10131 + bandwidth = callPackage ../tools/misc/bandwidth { }; 10132 + 10131 10133 bar = callPackage ../applications/window-managers/bar { }; 10132 10134 10133 10135 baresip = callPackage ../applications/networking/instant-messengers/baresip {