use Mitchell's Zig overlay

This commit is contained in:
Motiejus Jakštys 2024-11-19 22:31:08 +02:00
parent 70f6a860b2
commit 112e51dc25
3 changed files with 41 additions and 2 deletions

View File

@ -274,7 +274,8 @@
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nur": "nur", "nur": "nur",
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks",
"zig": "zig"
} }
}, },
"systems": { "systems": {
@ -306,6 +307,32 @@
"repo": "default", "repo": "default",
"type": "github" "type": "github"
} }
},
"zig": {
"inputs": {
"flake-compat": [
"flake-compat"
],
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1732018331,
"narHash": "sha256-K9Ckfj8B/BYseN/FjdP0Q+fpuXEgl8cVov5t6+4D8bU=",
"owner": "mitchellh",
"repo": "zig-overlay",
"rev": "d667054598d541df2266b961b207bb63fe8fe423",
"type": "github"
},
"original": {
"owner": "mitchellh",
"repo": "zig-overlay",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View File

@ -38,6 +38,15 @@
}; };
}; };
zig = {
url = "github:mitchellh/zig-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-compat.follows = "flake-compat";
flake-utils.follows = "flake-utils";
};
};
nix-index-database.url = "github:Mic92/nix-index-database"; nix-index-database.url = "github:Mic92/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
@ -74,6 +83,7 @@
nix-index-database, nix-index-database,
pre-commit-hooks, pre-commit-hooks,
nur, nur,
zig,
nixgl, nixgl,
... ...
}@inputs: }@inputs:
@ -82,6 +92,7 @@
overlays = [ overlays = [
nur.overlay nur.overlay
zig.overlays.default
nixgl.overlay nixgl.overlay
(_self: super: { deploy-rs-pkg = super.deploy-rs; }) (_self: super: { deploy-rs-pkg = super.deploy-rs; })

View File

@ -68,7 +68,8 @@ in
pkgs-unstable.delve pkgs-unstable.delve
pkgs-unstable.go_1_23 pkgs-unstable.go_1_23
pkgs-unstable.go-tools pkgs-unstable.go-tools
pkgs-unstable.zig_0_13
pkgs.zigpkgs."0.13.0"
]) ])
(lib.mkIf hmOnly [ (lib.mkIf hmOnly [