From 647b71cfa97b374c3cbebfff820117b45fb6ea26 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 23 Oct 2020 22:14:56 +0200 Subject: [PATCH] iozone: 3.471 -> 3.490 generate url instead of hardcoding the version in the url this should make auto-updating possible via nixpkgs-update --- pkgs/development/tools/misc/iozone/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/misc/iozone/default.nix b/pkgs/development/tools/misc/iozone/default.nix index e6beeca1d727..93e2673be63a 100644 --- a/pkgs/development/tools/misc/iozone/default.nix +++ b/pkgs/development/tools/misc/iozone/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, gnuplot }: +{ stdenv, lib, fetchurl, gnuplot }: let target = if stdenv.hostPlatform.system == "i686-linux" then @@ -13,11 +13,12 @@ let in stdenv.mkDerivation rec { - name = "iozone-3.471"; + pname = "iozone"; + version = "3.490"; src = fetchurl { - url = "http://www.iozone.org/src/current/iozone3_471.tar"; - sha256 = "0w63b3d4ws1sm52lpdd08sl7n4ay438dl3wy0q9la12iq81rglid"; + url = "http://www.iozone.org/src/current/iozone${lib.replaceStrings ["."] ["_"] version}.tar"; + sha256 = "1vagmm2k2bzlpahl2a2arpfmk3cd5nzhxi842a8mdag2b8iv9bay"; }; license = fetchurl {