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
30 lines
611 B
Nix
30 lines
611 B
Nix
{ fetchFromGitHub
|
|
, fetchYarnDeps
|
|
, runCommand
|
|
, nodejs
|
|
, yarn
|
|
, path
|
|
, nodePackages
|
|
}:
|
|
let
|
|
pinData = import ../srcs/pin.nix;
|
|
inherit (pinData) frappeVersion;
|
|
inherit (pinData.hashes) frappeSrcHash;
|
|
inherit (pinData.hashes) frappeYarnHash;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "frappe";
|
|
repo = "frappe";
|
|
rev = "v${frappeVersion}";
|
|
sha256 = frappeSrcHash;
|
|
};
|
|
|
|
offlineCache = fetchYarnDeps {
|
|
yarnLock = "${src}/yarn.lock";
|
|
sha256 = frappeYarnHash;
|
|
};
|
|
mkApp = import ./mk-app.nix {
|
|
inherit path runCommand nodejs yarn nodePackages;
|
|
};
|
|
in mkApp "frappe" src offlineCache
|