forked from axeman/erpnext-nix
teutat3s
7763af845d
bench: 5.16.2 -> 5.16.4 https://github.com/frappe/bench/releases/tag/v5.16.4 erpnext: 14.26.0 -> 14.30.6 https://github.com/frappe/erpnext/releases/tag/v14.30.6 Use new relaxed dependency: rapidfuzz frappe: 14.37.0 -> 14.40.3 https://github.com/frappe/frappe/releases/tag/v14.40.3 Add update.sh script to quickly update all versions in pin.nix Sort erpnext dependencies like upstream Update Readme with docs how to use update.sh script
31 lines
620 B
Nix
31 lines
620 B
Nix
{ 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;
|
|
};
|
|
|
|
offlineCache = fetchYarnDeps {
|
|
yarnLock = "${src}/yarn.lock";
|
|
sha256 = erpnextYarnHash;
|
|
};
|
|
|
|
mkApp = import ./mk-app.nix {
|
|
inherit path runCommand nodejs yarn nodePackages;
|
|
};
|
|
in mkApp "erpnext" src offlineCache
|