nixpkgs/pkgs/tools/system/ioping/default.nix

47 lines
1 KiB
Nix
Raw Normal View History

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-09-02 11:03:33 +02:00
version = "0.8";
name="${baseName}-${version}";
url="http://ioping.googlecode.com/files/${name}.tar.gz";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
2014-09-02 11:03:33 +02:00
sha256 = "0j7yal61nby1lkg9wnr6lxfljbd7wl3n0z8khqwvc9lf57bxngz2";
};
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-09-02 11:03:33 +02:00
downloadPage = "http://code.google.com/p/ioping/downloads/list";
inherit version;
};
}) x