Package git.b4l.co.th/newedge/default_thai_company as a frappix app
(pkgs/frappix/default-thai-company.nix) and expose it through a new
frappixAppsOverlay that extends the pkgs.frappix scope. Install it on
the poyerp.newedge.house site on deneb.
36 lines
767 B
Nix
36 lines
767 B
Nix
{
|
|
buildPythonPackage,
|
|
pythonRelaxDepsHook,
|
|
flit-core,
|
|
mkAssets,
|
|
fetchFromGitea,
|
|
}:
|
|
let
|
|
version = "0.0.1";
|
|
src = fetchFromGitea {
|
|
domain = "git.b4l.co.th";
|
|
owner = "newedge";
|
|
repo = "default_thai_company";
|
|
rev = "caad6e77da35c9359b0dbd75ff0f39bb01891caf";
|
|
sha256 = "sha256-LH7E1EkecNPrhfQWSlWzPHHuJLM6SReCAifcFPDr61o=";
|
|
};
|
|
in
|
|
buildPythonPackage (finalAttrs: {
|
|
# pname doubles as the frappe app name (services.frappe reads app.pname)
|
|
pname = "default_thai_company";
|
|
inherit version;
|
|
|
|
pyproject = true;
|
|
|
|
src = mkAssets {
|
|
inherit (finalAttrs) pname version;
|
|
inherit src;
|
|
yarnHash = "sha256-oZgyP0hTU9bxszOVg3Bmiu6yos2d2Inc1Do8To4z8GQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pythonRelaxDepsHook
|
|
flit-core
|
|
];
|
|
})
|