From 90938a3264a8e64a24a3384f70e9f57dadc8791a Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 15 Jul 2015 05:16:06 +0300 Subject: [PATCH] numix-icon-theme: Don't use fetchurl on dynamically generated GitHub tarballs Use fetchFromGitHub instead. As a bonus, unzip isn't needed anymore. --- pkgs/data/icons/numix-icon-theme/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/data/icons/numix-icon-theme/default.nix b/pkgs/data/icons/numix-icon-theme/default.nix index d6ca570ba52c..54d4e06be282 100644 --- a/pkgs/data/icons/numix-icon-theme/default.nix +++ b/pkgs/data/icons/numix-icon-theme/default.nix @@ -1,17 +1,17 @@ -{ stdenv, fetchurl, unzip }: +{ stdenv, fetchFromGitHub }: stdenv.mkDerivation rec { version = "2c11fbfcee"; package-name = "numix-icon-theme"; - + name = "${package-name}-20150302"; - buildInputs = [ unzip ]; - - src = fetchurl { - url = "https://github.com/numixproject/${package-name}/archive/${version}.zip"; - sha256 = "61dc170b8a70b20a9075f06e1668d6bd8907a6db0ef9e3568c473296d0f351e1"; + src = fetchFromGitHub { + owner = "numixproject"; + repo = package-name; + rev = version; + sha256 = "1bjh2j4vqk9s31syv7ig3hwpp5z0n6sx74iz332y0wdz6ngj5x08"; }; dontBuild = true; @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { install -dm 755 $out/share/icons cp -dr --no-preserve='ownership' Numix{,-Light} $out/share/icons/ ''; - + meta = { description = "Numix icon theme"; homepage = https://numixproject.org;