git.iko.soy/typeable/nixpkgs
on master help sign in
ioping: reimplement using mkDerivation

Also - set platform unix (upstream claims to support bsd and sun as well) - fetch source from GitHub

commit290c21757758b91be11f587628559418451e06a3 authorJoachim Fasting <joachifm@fastmail.fm> dateSat 18 Apr 2015, 19:45 (12 years ago) parenta579886
1 file changed+14−41
pkgs/tools/system/ioping/default.nix+14−41
pkgs/tools/system/ioping/default.nix+14−41
@@ -1,47 +1,20 @@
1−x@{builderDefsPackage
2− , ...}:
3−builderDefsPackage
4−(a :
5−let
6− helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
7− [];
1+{ stdenv, fetchurl }:
82
9− buildInputs = map (n: builtins.getAttr n x)
10− (builtins.attrNames (builtins.removeAttrs x helperArgNames));
11− sourceInfo = rec {
12− baseName="ioping";
13− version = "0.9";
14− name="${baseName}-${version}";
15− url="https://docs.google.com/uc?id=0B_PlDc2qaehFWWtLZ3Z3N1ltdm8&export=download";
16− };
17−in
18−rec {
19− src = a.fetchurl {
20− url = sourceInfo.url;
21− name = "${sourceInfo.name}.tar.gz";
3+stdenv.mkDerivation rec {
4+ name = "ioping-${version}";
5+ version = "0.9";
6+ src = fetchurl {
7+ url = "https://github.com/koct9i/ioping/releases/download/v${version}/${name}.tar.gz";
228 sha256 = "0pbp7b3304y9yyv2w41l3898h5q8w77hnnnq1vz8qz4qfl4467lm";
239 };
2410
25− inherit (sourceInfo) name version;
26− inherit buildInputs;
11+ makeFlags = "PREFIX=$(out)";
2712
28− /* doConfigure should be removed if not needed */
29− phaseNames = ["doMakeInstall"];
30− makeFlags = [
31− ''PREFIX="$out"''
32− ];
33−
34− meta = {
35− description = "Filesystem IO delay time measurer";
36− maintainers = with a.lib.maintainers;
37− [
38− raskin
39− ];
40− platforms = with a.lib.platforms;
41− linux;
42− license = a.lib.licenses.gpl3Plus;
43− homepage = "http://code.google.com/p/ioping/";
44− inherit version;
13+ meta = with stdenv.lib; {
14+ description = "Disk I/O latency measuring tool";
15+ maintainers = with maintainers; [ raskin ];
16+ platforms = with platforms; unix;
17+ license = licenses.gpl3Plus;
18+ homepage = https://github.com/koct9i/ioping;
4519 };
46−}) x
47−
20+}