diff options
Diffstat (limited to 'flake.nix')
| -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; }; } |
