mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
remarkjs: switch to fetchFromGitHub
This commit is contained in:
parent
676bbe428b
commit
aac38fedf5
@ -1,12 +1,13 @@
|
||||
{ stdenv, lib, fetchgit, fetchurl, nodejs, phantomjs2, pkgs }:
|
||||
{ stdenv, lib, fetchFromGitHub, nodejs, phantomjs2, pkgs }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
|
||||
# highlight.js is a git submodule of remark
|
||||
highlightjs = fetchgit {
|
||||
url = "https://github.com/isagalaev/highlight.js";
|
||||
highlightjs = fetchFromGitHub {
|
||||
owner = "isagalaev";
|
||||
repo = "highlight.js";
|
||||
rev = "10b9500b67983f0a9c42d8ce8bf8e8c469f7078c";
|
||||
sha256 = "1yy8by15kfklw8lwh17z1swpj067q0skjjih12yawbryraig41m0";
|
||||
};
|
||||
@ -16,14 +17,17 @@ let
|
||||
inherit (stdenv.hostPlatform) system;
|
||||
};
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "remarkjs";
|
||||
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/gnab/remark/archive/v${version}.tar.gz";
|
||||
sha256 = "1a2il6aa0g9cnig56ykmq8lr626pbxlsllk6js41h6gcn214rw60";
|
||||
src = fetchFromGitHub {
|
||||
owner = "gnab";
|
||||
repo = "remark";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-zhHuW4pBqXQEBlSxuyvHKh+ftyIdcqpYgIZZHArUtns=";
|
||||
};
|
||||
|
||||
buildInputs = [ nodejs phantomjs2 ] ++ (with nodePackages; [
|
||||
@ -62,7 +66,7 @@ in stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
homepage = "https://remarkjs.com";
|
||||
description = "A simple, in-browser, markdown-driven slideshow tool";
|
||||
maintainers = [];
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.linux;
|
||||
license = lib.licenses.mit;
|
||||
broken = true;
|
||||
|
Loading…
Reference in New Issue
Block a user