2011-06-07 17:56:50 +02:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="ioping";
|
2014-11-03 22:01:28 +01:00
|
|
|
version = "0.9";
|
2011-06-07 17:56:50 +02:00
|
|
|
name="${baseName}-${version}";
|
2014-11-03 22:01:28 +01:00
|
|
|
url="https://docs.google.com/uc?id=0B_PlDc2qaehFWWtLZ3Z3N1ltdm8&export=download";
|
2011-06-07 17:56:50 +02:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
2014-11-03 22:01:28 +01:00
|
|
|
name = "${sourceInfo.name}.tar.gz";
|
|
|
|
sha256 = "0pbp7b3304y9yyv2w41l3898h5q8w77hnnnq1vz8qz4qfl4467lm";
|
2011-06-07 17:56:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["doMakeInstall"];
|
|
|
|
makeFlags = [
|
|
|
|
''PREFIX="$out"''
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Filesystem IO delay time measurer";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
|
|
|
license = a.lib.licenses.gpl3Plus;
|
2014-11-03 22:01:28 +01:00
|
|
|
homepage = "http://code.google.com/p/ioping/";
|
2014-09-02 11:03:33 +02:00
|
|
|
inherit version;
|
2011-06-07 17:56:50 +02:00
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|