summaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix24
1 files changed, 16 insertions, 8 deletions
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;
};
}