···
+
stdenv.mkDerivation (finalAttrs: {
+
src = fetchFromGitHub {
+
tag = "v${finalAttrs.version}";
+
hash = "sha256-2lxf21T9y4GMFlk0+qbaJJ/twRffYEBoBXZXe/NRDQk=";
+
yarnOfflineCache = fetchYarnDeps {
+
yarnLock = "${finalAttrs.src}/yarn.lock";
+
hash = "sha256-mOgfwetiLMTDquw3f3+U1iEhBbvf0OC5lkNJHdrRSK0=";
+
substituteInPlace node_modules/.bin/tsc \
+
--replace-fail '/usr/bin/env node' '${lib.getExe nodejs}'
+
substituteInPlace node_modules/.bin/webpack \
+
--replace-fail '/usr/bin/env node' '${lib.getExe nodejs}'
+
substituteInPlace node_modules/.bin/postject \
+
--replace-fail '/usr/bin/env node' '${lib.getExe nodejs}'
+
install -Dm755 ./build/linux/viv $out/bin/viv
+
install -Dm755 ./build/linux/vivify-server $out/bin/vivify-server
+
wrapProgram $out/bin/viv \
+
npmHooks.npmInstallHook
+
# Stripping 'unneeded symbols' causes vivify-server executable to break
+
description = "Live Markdown viewer";
+
Vivify brings your files to life in the browser!
+
Vivify is primarily made to render Markdown and Jupyter Notebooks, but will also
+
serve as a directory browser and let you view code files with syntax highlighting.
+
homepage = "https://github.com/jannis-baum/Vivify";
+
changelog = "https://github.com/jannis-baum/Vivify/releases/tag/v${finalAttrs.src.tag}";
+
license = lib.licenses.gpl3;
+
maintainers = with lib.maintainers; [ skohtv ];
+
platforms = lib.platforms.linux;