Skip to content
Snippets Groups Projects
Verified Commit 3ecc8f07 authored by Nicolas Lenz's avatar Nicolas Lenz :snowflake:
Browse files

wip

parent aadf6e5e
No related branches found
No related tags found
No related merge requests found
/*
This is trying to replace Grist in Docker.
TODO: figure out package, figure out sandboxing, figure out module
heavily based on: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/servers/web-apps/hedgedoc/default.nix
see: https://ryantm.github.io/nixpkgs/languages-frameworks/javascript/
*/
{ mkYarnPackage
, fetchYarnDeps
, fetchFromGitHub
}:
let
version = "1.1.5";
src = fetchFromGitHub {
owner = "gristlabs";
repo = "grist-core";
rev = "v${version}";
hash = "sha256-/bokCqezVtXuxt77cZF9y/Y26hq/CC2eRoO4++aj+SE=";
};
offlineCache = fetchYarnDeps {
yarnLock = src + "/yarn.lock";
hash = "sha256-pZCIbC8bMsxwrypUmUy1XPmFSzBZJF2gZ5yO3bhunok=";
};
in mkYarnPackage {
pname = "grist";
inherit version src;
inherit offlineCache;
packageJSON = src + "/package.json";
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment