From 537ea53363a1e9353a81551e237ae3a03fdf8ce9 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 12 Aug 2026 23:10:14 +0200 Subject: chore: Initial commit --- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 17 +++++++++++++++++ shells/zig.nix | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 shells/zig.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..e8fbf05 --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1786410043, + "narHash": "sha256-JTbODJPDcd3d8U7lO4MVUU3Yo0jz2KQSAHXka+IWBEo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "8e2eeb9477c9d40009a5bd51cd3eef2f5abb26f1", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..79c663f --- /dev/null +++ b/flake.nix @@ -0,0 +1,17 @@ +{ + inputs = { + nixpkgs = { + url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + }; + }; + outputs = {nixpkgs, ...}: let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages."${system}"; + + zig = pkgs.callPackage ./shells/zig.nix {}; + in { + devShells."${system}" = { + inherit zig; + }; + }; +} diff --git a/shells/zig.nix b/shells/zig.nix new file mode 100644 index 0000000..3d3d874 --- /dev/null +++ b/shells/zig.nix @@ -0,0 +1,39 @@ +# 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 . +{ + mkShell, + pkg-config, + zig, + reuse, + gcc, +}: +mkShell { + __structuredAttrs = true; + + buildInputs = [ + gcc + ]; + + env = { + VARIBALE = "a"; + }; + + nativeBuildInputs = [ + pkg-config + ]; + + packages = [ + zig + + # Releng + reuse + ]; +} -- cgit v1.3.1