mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
ioping: reimplement using mkDerivation
Also - set platform unix (upstream claims to support bsd and sun as well) - fetch source from GitHub
This commit is contained in:
parent
a579886b2b
commit
290c217577
@ -1,47 +1,20 @@
|
|||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl }:
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
[];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name = "ioping-${version}";
|
||||||
sourceInfo = rec {
|
version = "0.9";
|
||||||
baseName="ioping";
|
src = fetchurl {
|
||||||
version = "0.9";
|
url = "https://github.com/koct9i/ioping/releases/download/v${version}/${name}.tar.gz";
|
||||||
name="${baseName}-${version}";
|
|
||||||
url="https://docs.google.com/uc?id=0B_PlDc2qaehFWWtLZ3Z3N1ltdm8&export=download";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
src = a.fetchurl {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
name = "${sourceInfo.name}.tar.gz";
|
|
||||||
sha256 = "0pbp7b3304y9yyv2w41l3898h5q8w77hnnnq1vz8qz4qfl4467lm";
|
sha256 = "0pbp7b3304y9yyv2w41l3898h5q8w77hnnnq1vz8qz4qfl4467lm";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
makeFlags = "PREFIX=$(out)";
|
||||||
inherit buildInputs;
|
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
meta = with stdenv.lib; {
|
||||||
phaseNames = ["doMakeInstall"];
|
description = "Disk I/O latency measuring tool";
|
||||||
makeFlags = [
|
maintainers = with maintainers; [ raskin ];
|
||||||
''PREFIX="$out"''
|
platforms = with platforms; unix;
|
||||||
];
|
license = licenses.gpl3Plus;
|
||||||
|
homepage = https://github.com/koct9i/ioping;
|
||||||
meta = {
|
|
||||||
description = "Filesystem IO delay time measurer";
|
|
||||||
maintainers = with a.lib.maintainers;
|
|
||||||
[
|
|
||||||
raskin
|
|
||||||
];
|
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
linux;
|
|
||||||
license = a.lib.licenses.gpl3Plus;
|
|
||||||
homepage = "http://code.google.com/p/ioping/";
|
|
||||||
inherit version;
|
|
||||||
};
|
};
|
||||||
}) x
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user