vivify: init at 0.8.2 (#437546)

authored by Yohann Boniface and committed by GitHub ab51b0a2 e191a1da

+91
+6
maintainers/maintainer-list.nix
··· 24015 githubId = 617130; 24016 keys = [ { fingerprint = "C4F7 46C7 B560 38D8 210F 0288 5877 DEE9 7428 557F"; } ]; 24017 }; 24018 skovati = { 24019 github = "skovati"; 24020 githubId = 49844593;
··· 24015 githubId = 617130; 24016 keys = [ { fingerprint = "C4F7 46C7 B560 38D8 210F 0288 5877 DEE9 7428 557F"; } ]; 24017 }; 24018 + skohtv = { 24019 + name = "Skoh"; 24020 + email = "contact@skoh.dev"; 24021 + github = "skohtv"; 24022 + githubId = 101289702; 24023 + }; 24024 skovati = { 24025 github = "skovati"; 24026 githubId = 49844593;
+85
pkgs/by-name/vi/vivify/package.nix
···
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchYarnDeps, 5 + fetchFromGitHub, 6 + yarnConfigHook, 7 + npmHooks, 8 + nodejs, 9 + zip, 10 + file, 11 + }: 12 + 13 + stdenv.mkDerivation (finalAttrs: { 14 + pname = "vivify"; 15 + version = "0.8.2"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "jannis-baum"; 19 + repo = "Vivify"; 20 + tag = "v${finalAttrs.version}"; 21 + hash = "sha256-2lxf21T9y4GMFlk0+qbaJJ/twRffYEBoBXZXe/NRDQk="; 22 + }; 23 + 24 + yarnOfflineCache = fetchYarnDeps { 25 + yarnLock = "${finalAttrs.src}/yarn.lock"; 26 + hash = "sha256-mOgfwetiLMTDquw3f3+U1iEhBbvf0OC5lkNJHdrRSK0="; 27 + }; 28 + 29 + installPhase = '' 30 + runHook preInstall 31 + 32 + yarn install 33 + 34 + substituteInPlace node_modules/.bin/tsc \ 35 + --replace-fail '/usr/bin/env node' '${lib.getExe nodejs}' 36 + 37 + substituteInPlace node_modules/.bin/webpack \ 38 + --replace-fail '/usr/bin/env node' '${lib.getExe nodejs}' 39 + 40 + substituteInPlace node_modules/.bin/postject \ 41 + --replace-fail '/usr/bin/env node' '${lib.getExe nodejs}' 42 + 43 + make linux 44 + 45 + mkdir -p $out/bin 46 + install -Dm755 ./build/linux/viv $out/bin/viv 47 + install -Dm755 ./build/linux/vivify-server $out/bin/vivify-server 48 + 49 + wrapProgram $out/bin/viv \ 50 + --prefix PATH : ${ 51 + lib.makeBinPath [ 52 + nodejs 53 + file 54 + ] 55 + } 56 + ''; 57 + 58 + nativeBuildInputs = [ 59 + yarnConfigHook 60 + npmHooks.npmInstallHook 61 + zip 62 + 63 + nodejs 64 + file 65 + ]; 66 + 67 + # Stripping 'unneeded symbols' causes vivify-server executable to break 68 + # (segmentation fault) 69 + dontStrip = true; 70 + 71 + meta = { 72 + description = "Live Markdown viewer"; 73 + longDescription = '' 74 + Vivify brings your files to life in the browser! 75 + Vivify is primarily made to render Markdown and Jupyter Notebooks, but will also 76 + serve as a directory browser and let you view code files with syntax highlighting. 77 + ''; 78 + homepage = "https://github.com/jannis-baum/Vivify"; 79 + changelog = "https://github.com/jannis-baum/Vivify/releases/tag/v${finalAttrs.src.tag}"; 80 + license = lib.licenses.gpl3; 81 + maintainers = with lib.maintainers; [ skohtv ]; 82 + platforms = lib.platforms.linux; 83 + mainProgram = "viv"; 84 + }; 85 + })