diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-12 23:10:14 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-12 23:10:14 +0200 |
| commit | 537ea53363a1e9353a81551e237ae3a03fdf8ce9 (patch) | |
| tree | b93067fa98d8156783cd3ee847b41f3933e38f52 | |
| download | devshells-537ea53363a1e9353a81551e237ae3a03fdf8ce9.zip | |
chore: Initial commit
| -rw-r--r-- | flake.lock | 27 | ||||
| -rw-r--r-- | flake.nix | 17 | ||||
| -rw-r--r-- | shells/zig.nix | 39 |
3 files changed, 83 insertions, 0 deletions
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 <benedikt.peetz@b-peetz.de> +# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# 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 <https://www.gnu.org/licenses/gpl-3.0.txt>. +{ + mkShell, + pkg-config, + zig, + reuse, + gcc, +}: +mkShell { + __structuredAttrs = true; + + buildInputs = [ + gcc + ]; + + env = { + VARIBALE = "a"; + }; + + nativeBuildInputs = [ + pkg-config + ]; + + packages = [ + zig + + # Releng + reuse + ]; +} |
