From 2730189c99656e5ae6bd5795a33e8a3225847036 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 12 Aug 2026 23:27:17 +0200 Subject: feat: Add more shells --- flake.nix | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 79c663f..79dbb2d 100644 --- a/flake.nix +++ b/flake.nix @@ -1,17 +1,25 @@ { inputs = { - nixpkgs = { - url = "github:NixOS/nixpkgs/nixpkgs-unstable"; - }; + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + library.url = "git+https://git.foss-syndicate.org/vhack.eu/nix-library?ref=prime"; }; - outputs = {nixpkgs, ...}: let + + outputs = { + nixpkgs, + library, + ... + }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages."${system}"; + inherit (library) nixLib; - zig = pkgs.callPackage ./shells/zig.nix {}; - in { - devShells."${system}" = { - inherit zig; + shells = nixLib.mkByName { + useShards = false; + baseDirectory = ./shells; + fileName = "shell.nix"; + finalizeFunction = name: value: pkgs.callPackage value {}; }; + in { + devShells."${system}" = shells; }; } -- cgit v1.3.1