forked from nix-community/nixGL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
27 lines (23 loc) · 870 Bytes
/
flake.nix
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
{
description = "A wrapper tool for nix OpenGL applications";
outputs = { self, nixpkgs }: let
pkgs = import ./default.nix { pkgs = nixpkgs.legacyPackages.x86_64-linux; };
in rec {
overlays.default = final: _: {
nixgl = import ./default.nix { pkgs = final; };
};
packages.x86_64-linux = {
# makes it easy to use "nix run nixGL --impure -- program"
default = pkgs.auto.nixGLDefault;
nixGLDefault = pkgs.auto.nixGLDefault;
nixGLNvidia = pkgs.auto.nixGLNvidia;
nixGLNvidiaBumblebee = pkgs.auto.nixGLNvidiaBumblebee;
nixGLIntel = pkgs.nixGLIntel;
nixVulkanNvidia = pkgs.auto.nixVulkanNvidia;
nixVulkanIntel = pkgs.nixVulkanIntel;
};
# deprecated attributes for retro compatibility
defaultPackage.x86_64-linux = packages.x86_64-linux.default;
overlay = overlays.default;
};
}