From e8d79aba4e1a955bec8573de766e99c26ec3b15b Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Mon, 27 Aug 2018 20:59:19 +0000 Subject: [PATCH] use fetchFromGitHub instead of fetchurl as recommended by @jtojnar --- pkgs/tools/system/incron/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/system/incron/default.nix b/pkgs/tools/system/incron/default.nix index 6c708a49b64f..4133342f6c4d 100644 --- a/pkgs/tools/system/incron/default.nix +++ b/pkgs/tools/system/incron/default.nix @@ -1,10 +1,12 @@ -{ stdenv, fetchurl, bash }: +{ stdenv, fetchFromGitHub, bash }: stdenv.mkDerivation rec { name = "incron-0.5.12"; - src = fetchurl { - url = "https://github.com/ar-/incron/archive/0.5.12.tar.gz"; - sha256 = "14cgsfyl43pd86wy40m1xwr7ww023n2jyks66ngybz5s4gbhps6c"; + src = fetchFromGitHub { + owner = "ar-"; + repo = "incron"; + rev = "incron-0.5.12"; + sha256 = "11d5f98cjafiv9h9zzzrw2s06s2fvdg8gp64km7mdprd2xmy6dih"; }; patches = [ ./default_path.patch ];