erpnext-nix/flake.nix

38 lines
1 KiB
Nix
Raw Normal View History

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
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
];
};
inherit pkgs;
run-erpnext = pkgs.run-erpnext;
2023-05-18 13:57:22 +00:00
pip2nix = import "${pip2nix}/default.nix" { inherit pkgs; pythonPackages = "python310Packages"; };
erpnext = pkgs.python3.pkgs.erpnext;
bench = pkgs.python3.pkgs.bench;
pythonPkgs = pkgs.python3.pkgs;
2023-05-18 13:57:22 +00:00
};
});
}