From 1952a19c61dc0d36c796ca1a151b73cff6a47e43 Mon Sep 17 00:00:00 2001 From: schneefux Date: Mon, 8 Oct 2018 13:43:13 +0200 Subject: [PATCH] bootchart: use fetchFromGitHub instead of fetchurl --- pkgs/tools/system/bootchart/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/system/bootchart/default.nix b/pkgs/tools/system/bootchart/default.nix index 9cba7df21b7..37217bba2e9 100644 --- a/pkgs/tools/system/bootchart/default.nix +++ b/pkgs/tools/system/bootchart/default.nix @@ -1,12 +1,14 @@ -{stdenv, fetchurl, pkgconfig, glib, gtk2, python2Packages }: +{stdenv, fetchFromGitHub, pkgconfig, glib, gtk2, python2Packages }: stdenv.mkDerivation rec { version = "0.14.7"; name = "bootchart-${version}"; - src = fetchurl { - url = "https://github.com/mmeeks/bootchart/archive/${version}.tar.gz"; - sha256 = "1abn4amsyys6vwn7csxsxny94n24ycca3xhqxqcmdc4j0dzn3kmb"; + src = fetchFromGitHub { + owner = "mmeeks"; + repo = "bootchart"; + rev = version; + sha256 = "178p7z5npx2ksqx477454n1l5560ncbpjh65j9dr001wmwzqzh5q"; }; nativeBuildInputs = [ pkgconfig ];