46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{
|
|
description = "Dev Setup";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
inputs.systems.url = "github:nix-systems/default";
|
|
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
|
|
];
|
|
};
|
|
inherit pkgs;
|
|
run-erpnext = pkgs.run-erpnext;
|
|
pip2nix = import "${pip2nix}/default.nix" { inherit pkgs; pythonPackages = "python310Packages"; };
|
|
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];
|
|
};
|
|
};
|
|
};
|
|
}
|