hm: install zig 0.11

This commit is contained in:
Motiejus Jakštys 2023-10-09 12:15:07 +03:00 committed by Motiejus Jakštys
parent e05b9eed79
commit 7d14811730
3 changed files with 47 additions and 2 deletions

29
flake.lock generated
View File

@ -235,7 +235,8 @@
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nur": "nur",
"pre-commit-hooks": "pre-commit-hooks"
"pre-commit-hooks": "pre-commit-hooks",
"zigpkgs": "zigpkgs"
}
},
"systems": {
@ -252,6 +253,32 @@
"repo": "default",
"type": "github"
}
},
"zigpkgs": {
"inputs": {
"flake-compat": [
"flake-compat"
],
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1696810944,
"narHash": "sha256-yvt223HLZlAJa/u4uzT5aw3ph2bifto/KfU2k+eX+jg=",
"owner": "mitchellh",
"repo": "zig-overlay",
"rev": "6dc03885321cc8aad6356c847148eb40e167f9fb",
"type": "github"
},
"original": {
"owner": "mitchellh",
"repo": "zig-overlay",
"type": "github"
}
}
},
"root": "root",

View File

@ -8,6 +8,11 @@
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nur.url = "github:nix-community/NUR";
zigpkgs.url = "github:mitchellh/zig-overlay";
zigpkgs.inputs.nixpkgs.follows = "nixpkgs";
zigpkgs.inputs.flake-utils.follows = "flake-utils";
zigpkgs.inputs.flake-compat.follows = "flake-compat";
home-manager.url = "github:nix-community/home-manager/release-23.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
@ -50,6 +55,7 @@
nixos-hardware,
nix-index-database,
pre-commit-hooks,
zigpkgs,
nur,
...
} @ inputs: let
@ -246,7 +252,17 @@
deploy-rs.lib;
}
// flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
pkgs = import nixpkgs {
inherit system;
overlays = [
(_final: prev: {
zigpkgs = import zigpkgs {
inherit (prev) pkgs;
inherit system;
};
})
];
};
in {
homeConfigurations.motiejusja = home-manager.lib.homeManagerConfiguration {
inherit pkgs;

View File

@ -18,6 +18,8 @@
(with pkgs; [
go
zigpkgs."0.11.0"
scala_2_12
coursier
])