This repository was archived by the owner on Jul 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
47 lines (43 loc) · 1.35 KB
/
flake.nix
File metadata and controls
47 lines (43 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
inputs.nixpkgs.url = "https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz";
inputs.rust-overlay.url = "github:oxalica/rust-overlay";
inputs.rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
outputs =
{
self,
nixpkgs,
rust-overlay,
}:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ (import rust-overlay) ];
};
in
{
packages.${system} = {
default = self.packages.${system}.clang-cl;
msvc-wine = pkgs.callPackage ./sdk/msvc-wine.nix { };
msvc-sdk = pkgs.callPackage ./sdk/msvc-sdk.nix {
msvc-wine = self.packages.${system}.msvc-wine;
};
clang-cl = pkgs.callPackage ./clang {
msvc-sdk = self.packages.${system}.msvc-sdk;
msvc-wine = self.packages.${system}.msvc-wine;
};
rustc = pkgs.callPackage ./rustc {
msvc-sdk = self.packages.${system}.msvc-sdk;
msvc-wine = self.packages.${system}.msvc-wine;
clang-cl = self.packages.${system}.clang-cl;
rustc = pkgs.rust-bin.stable.latest.minimal.override {
targets = [ "x86_64-pc-windows-msvc" ];
};
};
};
checks.${system} = {
inherit (self.packages.${system}) clang-cl rustc;
};
formatter.${system} = pkgs.nixfmt-tree;
};
}