remarkjs: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2021-10-24 22:37:56 +02:00 committed by Jonathan Ringer
parent 676bbe428b
commit aac38fedf5

View file

@ -1,12 +1,13 @@
{ stdenv, lib, fetchgit, fetchurl, nodejs, phantomjs2, pkgs }: { stdenv, lib, fetchFromGitHub, nodejs, phantomjs2, pkgs }:
with lib; with lib;
let let
# highlight.js is a git submodule of remark # highlight.js is a git submodule of remark
highlightjs = fetchgit { highlightjs = fetchFromGitHub {
url = "https://github.com/isagalaev/highlight.js"; owner = "isagalaev";
repo = "highlight.js";
rev = "10b9500b67983f0a9c42d8ce8bf8e8c469f7078c"; rev = "10b9500b67983f0a9c42d8ce8bf8e8c469f7078c";
sha256 = "1yy8by15kfklw8lwh17z1swpj067q0skjjih12yawbryraig41m0"; sha256 = "1yy8by15kfklw8lwh17z1swpj067q0skjjih12yawbryraig41m0";
}; };
@ -16,14 +17,17 @@ let
inherit (stdenv.hostPlatform) system; inherit (stdenv.hostPlatform) system;
}; };
in stdenv.mkDerivation rec { in
stdenv.mkDerivation rec {
pname = "remarkjs"; pname = "remarkjs";
version = "0.7.0"; version = "0.7.0";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/gnab/remark/archive/v${version}.tar.gz"; owner = "gnab";
sha256 = "1a2il6aa0g9cnig56ykmq8lr626pbxlsllk6js41h6gcn214rw60"; repo = "remark";
rev = "v${version}";
sha256 = "sha256-zhHuW4pBqXQEBlSxuyvHKh+ftyIdcqpYgIZZHArUtns=";
}; };
buildInputs = [ nodejs phantomjs2 ] ++ (with nodePackages; [ buildInputs = [ nodejs phantomjs2 ] ++ (with nodePackages; [