about summary refs log tree commit diff
path: root/pkgs/tools/system/incron
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2018-08-27 20:59:19 +0000
committerAaron Andersen <aaron@fosslib.net>2018-08-27 20:59:19 +0000
commite8d79aba4e1a955bec8573de766e99c26ec3b15b (patch)
treeba2481c2d9926cddb8f6fb62769dba0b7541ed8f /pkgs/tools/system/incron
parent64fd3f10aaaca018334ca019d1c9aa4b7c87fe2b (diff)
downloadnixlib-e8d79aba4e1a955bec8573de766e99c26ec3b15b.tar
nixlib-e8d79aba4e1a955bec8573de766e99c26ec3b15b.tar.gz
nixlib-e8d79aba4e1a955bec8573de766e99c26ec3b15b.tar.bz2
nixlib-e8d79aba4e1a955bec8573de766e99c26ec3b15b.tar.lz
nixlib-e8d79aba4e1a955bec8573de766e99c26ec3b15b.tar.xz
nixlib-e8d79aba4e1a955bec8573de766e99c26ec3b15b.tar.zst
nixlib-e8d79aba4e1a955bec8573de766e99c26ec3b15b.zip
use fetchFromGitHub instead of fetchurl as recommended by @jtojnar
Diffstat (limited to 'pkgs/tools/system/incron')
-rw-r--r--pkgs/tools/system/incron/default.nix10
1 files 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 ];