# rocie - An enterprise grocery management system # # Copyright (C) 2024 Benedikt Peetz # Copyright (C) 2025 Benedikt Peetz # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Rocie. # # You should have received a copy of the License along with this program. # If not, see . { description = "rocie"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small"; # Inputs for following rust-overlay = { url = "github:oxalica/rust-overlay"; inputs = { nixpkgs.follows = "nixpkgs"; }; }; crane.url = "github:ipetkov/crane"; rocie-mobile = { url = "git+https://git.foss-syndicate.org/bpeetz/rocie/web-client?ref=prime"; inputs = { nixpkgs.follows = "nixpkgs"; treefmt-nix.follows = "treefmt-nix"; rust-overlay.follows = "rust-overlay"; crane.follows = "crane"; }; }; rocie-server = { url = "git+https://git.foss-syndicate.org/bpeetz/rocie/server?ref=prime"; inputs = { nixpkgs.follows = "nixpkgs"; treefmt-nix.follows = "treefmt-nix"; }; }; treefmt-nix = { url = "github:numtide/treefmt-nix"; inputs = { nixpkgs.follows = "nixpkgs"; }; }; }; outputs = { self, nixpkgs, treefmt-nix, rocie-mobile, rocie-server, ... }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages."${system}"; treefmtEval = import ./treefmt.nix {inherit treefmt-nix pkgs;}; module = import ./module { rocie-mobile = rocie-mobile.outputs.packages."${system}".rocie; rocie-server = rocie-server.outputs.packages."${system}".rocie; }; in { checks."${system}" = { formatting = treefmtEval.config.build.check self; }; nixosModules = { default = module; }; formatter."${system}" = treefmtEval.config.build.wrapper; devShells."${system}".default = pkgs.mkShell { packages = [ # Releng pkgs.git-bug pkgs.reuse pkgs.cocogitto ]; }; }; }