erpnext-nix/node/erpnext-app.nix

31 lines
620 B
Nix
Raw Permalink Normal View History

2023-06-03 08:24:05 +00:00
{ fetchFromGitHub
, fetchYarnDeps
, runCommand
, nodejs
, yarn
, path
, nodePackages
}:
let
pinData = import ../srcs/pin.nix;
inherit (pinData) erpnextVersion;
inherit (pinData.hashes) erpnextSrcHash;
inherit (pinData.hashes) erpnextYarnHash;
src = fetchFromGitHub {
owner = "frappe";
repo = "erpnext";
rev = "v${erpnextVersion}";
sha256 = erpnextSrcHash;
};
2023-06-03 08:24:05 +00:00
offlineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
sha256 = erpnextYarnHash;
2023-06-03 08:24:05 +00:00
};
mkApp = import ./mk-app.nix {
inherit path runCommand nodejs yarn nodePackages;
};
in mkApp "erpnext" src offlineCache