erpnext-nix/flake.nix

46 lines
1.2 KiB
Nix
Raw Normal View History

2023-05-18 13:57:22 +00:00
{
description = "Dev Setup";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.systems.url = "github:nix-systems/default";
2023-05-18 13:57:22 +00:00
inputs.pip2nix = {
url = "github:nix-community/pip2nix";
flake = false;
};
outputs = {nixpkgs, systems, pip2nix, ...}:
let
eachSystem = nixpkgs.lib.genAttrs (import systems);
pkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [
(import ./python-overlay.nix)
(import ./overlay.nix)
];
};
in
{
packages = eachSystem (system: {
devEnv = pkgs.buildEnv {
name = "erpnext-nix-dev-env";
paths = [
pkgs.dasel
];
2023-05-21 15:55:26 +00:00
};
inherit pkgs;
run-erpnext = pkgs.run-erpnext;
pip2nix = import "${pip2nix}/default.nix" { inherit pkgs; pythonPackages = "python310Packages"; };
2023-06-07 19:58:05 +00:00
erpnext = pkgs.python3-erpnext.pkgs.erpnext;
bench = pkgs.python3-erpnext.pkgs.bench;
pythonPkgs = pkgs.python3-erpnext.pkgs;
});
nixosConfigurations = {
test-vm = nixpkgs.lib.nixosSystem {
inherit pkgs;
system = "x86_64-linux";
modules = [./test-vm/configuration.nix];
2023-05-18 13:57:22 +00:00
};
};
};
2023-05-18 13:57:22 +00:00
}