# 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"; treefmt-nix = { url = "github:numtide/treefmt-nix"; inputs = { nixpkgs.follows = "nixpkgs"; }; }; }; outputs = { self, nixpkgs, treefmt-nix, }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages."${system}"; buildInputs = [ pkgs.openssl ]; nativeBuildInputs = [ pkgs.pkg-config ]; rocie = pkgs.callPackage ./nix/package.nix {}; treefmtEval = import ./treefmt.nix {inherit treefmt-nix pkgs;}; in { packages."${system}" = { inherit rocie; default = self.packages.${system}.rocie; }; checks."${system}" = { inherit rocie; formatting = treefmtEval.config.build.check self; }; formatter."${system}" = treefmtEval.config.build.wrapper; devShells."${system}".default = pkgs.mkShell { inherit buildInputs nativeBuildInputs; packages = [ # rust stuff pkgs.cargo pkgs.clippy pkgs.rustc pkgs.rustfmt pkgs.mold-wrapped pkgs.cargo-edit pkgs.cargo-expand pkgs.cargo-flamegraph # Api pkgs.openapi-generator-cli # Releng pkgs.git-bug pkgs.reuse pkgs.cocogitto # Perf pkgs.hyperfine # Sqlite pkgs.sqlite-interactive pkgs.graphviz ]; }; }; }