From fa534f3509d91cc3cf740ba18baa45b63177da91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 18 Mar 2018 12:42:43 +0000 Subject: [PATCH] edbrowse: use fetchFromGitHub instead of fetchurl --- pkgs/applications/editors/edbrowse/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/editors/edbrowse/default.nix b/pkgs/applications/editors/edbrowse/default.nix index 9ca64678cb96..a6611d2f167d 100644 --- a/pkgs/applications/editors/edbrowse/default.nix +++ b/pkgs/applications/editors/edbrowse/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, duktape, curl, pcre, readline, openssl, perl, html-tidy }: +{ stdenv, fetchFromGitHub, duktape, curl, pcre, readline, openssl, perl, html-tidy }: stdenv.mkDerivation rec { name = "edbrowse-${version}"; @@ -15,10 +15,11 @@ stdenv.mkDerivation rec { makeFlags = "-C src prefix=$(out)"; - src = fetchurl { - name = "${name}.tar.gz"; - url = "https://github.com/CMB/edbrowse/archive/v${version}.tar.gz"; - sha256 = "1g9cwk4wszahk2m8k34i3rx44yhqfnv67zls0lk5g7jhrhpbf433"; + src = fetchFromGitHub { + owner = "CMB"; + repo = "edbrowse"; + rev = "v${version}"; + sha256 = "00wi0m91zf8p8wk4ixlz99dndgv4xqy93m2vsiwdr3khw3jwipp2"; }; meta = with stdenv.lib; { description = "Command Line Editor Browser";