diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-12 23:27:17 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-08-12 23:27:17 +0200 |
| commit | 2730189c99656e5ae6bd5795a33e8a3225847036 (patch) | |
| tree | 85933cb99b07aedd08b3b4499edf3d101f63ecc6 /flake.nix | |
| parent | chore: Initial commit (diff) | |
| download | devshells-2730189c99656e5ae6bd5795a33e8a3225847036.zip | |
feat: Add more shells
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 24 |
1 files changed, 16 insertions, 8 deletions
@@ -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; }; } |
