2023-05-18 13:57:22 +00:00
|
|
|
{
|
|
|
|
description = "Dev Setup";
|
|
|
|
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
inputs.pip2nix = {
|
|
|
|
url = "github:nix-community/pip2nix";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {nixpkgs, flake-utils, pip2nix, ...}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
2023-06-02 14:00:58 +00:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [
|
|
|
|
(import ./python-overlay.nix)
|
|
|
|
(import ./overlay.nix)
|
|
|
|
];
|
2023-05-21 15:55:26 +00:00
|
|
|
};
|
2023-05-18 13:57:22 +00:00
|
|
|
in rec {
|
|
|
|
packages = {
|
|
|
|
devEnv = pkgs.buildEnv {
|
|
|
|
name = "erpnext-nix-dev-env";
|
|
|
|
paths = [
|
|
|
|
pkgs.dasel
|
|
|
|
];
|
|
|
|
};
|
2023-06-02 14:00:58 +00:00
|
|
|
inherit pkgs;
|
|
|
|
run-erpnext = pkgs.run-erpnext;
|
2023-05-18 13:57:22 +00:00
|
|
|
pip2nix = import "${pip2nix}/default.nix" { inherit pkgs; pythonPackages = "python310Packages"; };
|
2023-06-02 14:00:58 +00:00
|
|
|
erpnext = pkgs.python3.pkgs.erpnext;
|
|
|
|
bench = pkgs.python3.pkgs.bench;
|
|
|
|
pythonPkgs = pkgs.python3.pkgs;
|
2023-05-18 13:57:22 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|