edbrowse: use fetchFromGitHub instead of fetchurl

This commit is contained in:
Jörg Thalheim 2018-03-18 12:42:43 +00:00
parent 711bef7bcf
commit fa534f3509

View File

@ -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 { stdenv.mkDerivation rec {
name = "edbrowse-${version}"; name = "edbrowse-${version}";
@ -15,10 +15,11 @@ stdenv.mkDerivation rec {
makeFlags = "-C src prefix=$(out)"; makeFlags = "-C src prefix=$(out)";
src = fetchurl { src = fetchFromGitHub {
name = "${name}.tar.gz"; owner = "CMB";
url = "https://github.com/CMB/edbrowse/archive/v${version}.tar.gz"; repo = "edbrowse";
sha256 = "1g9cwk4wszahk2m8k34i3rx44yhqfnv67zls0lk5g7jhrhpbf433"; rev = "v${version}";
sha256 = "00wi0m91zf8p8wk4ixlz99dndgv4xqy93m2vsiwdr3khw3jwipp2";
}; };
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Command Line Editor Browser"; description = "Command Line Editor Browser";