2023-06-03 08:24:05 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, fetchYarnDeps
|
|
|
|
, runCommand
|
|
|
|
, nodejs
|
|
|
|
, yarn
|
|
|
|
, path
|
|
|
|
, nodePackages
|
|
|
|
}:
|
|
|
|
let
|
2023-06-05 17:19:43 +00:00
|
|
|
pinData = import ../srcs/pin.nix;
|
|
|
|
inherit (pinData) frappeVersion;
|
|
|
|
inherit (pinData.hashes) frappeSrcHash;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "frappe";
|
|
|
|
repo = "frappe";
|
|
|
|
rev = "v${frappeVersion}";
|
|
|
|
hash = frappeSrcHash;
|
|
|
|
};
|
|
|
|
|
2023-06-03 08:24:05 +00:00
|
|
|
offlineCache = fetchYarnDeps {
|
|
|
|
yarnLock = "${src}/yarn.lock";
|
|
|
|
sha256 = "sha256-PBdMUz9gJIoQaqQYbdk+xnd8CyZPmdeyz/9WznCb4Ss=";
|
|
|
|
};
|
|
|
|
mkApp = import ./mk-app.nix {
|
|
|
|
inherit path runCommand nodejs yarn nodePackages;
|
|
|
|
};
|
|
|
|
in mkApp "frappe" src offlineCache
|