-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathflake.nix
More file actions
83 lines (81 loc) · 2.13 KB
/
flake.nix
File metadata and controls
83 lines (81 loc) · 2.13 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
description = "A mcpe 0.1.0-0.10.5 launcher for linux and windows ";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
nixgl = {
url = "github:nix-community/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
glad = {
flake = false;
url = "github:Dav1dde/glad/56e406e90a802e963bb18d9c94cf6589e5a6b0a9";
};
ancmp = {
flake = false;
url = "github:MFDGaming/ancmp";
};
stb = {
flake = false;
url = "github:nothings/stb/5736b15f7ea0ffb08dd38af21067c314d6a3aae9";
};
ninecraft-mod-toolchain-build-scripts = {
flake = false;
url = "github:MCPI-Revival/ninecraft-mod-toolchain-build-scripts";
};
};
outputs = {
self,
nixpkgs,
flake-utils,
nixgl,
glad,
ancmp,
stb,
ninecraft-mod-toolchain-build-scripts,
}: let
mkPkgs = system:
import nixpkgs {
inherit system;
config = {
allowUnfree = true;
android_sdk.accept_license = true;
};
overlays = [nixgl.overlay];
};
in
flake-utils.lib.eachDefaultSystem (system: let
pkgs = mkPkgs system;
in rec {
packages =
(import ./nix/pkgs {
inherit pkgs;
flakeRoot = self;
# inherit glad stb ancmp ninecraft-mod-toolchain-build-scripts;
# ancmp = ./ancmp;
})
// {
default = packages.buildNinecraftInstance {
version = packages.mcpeVersions.a0_6_1;
};
};
apps = {
extract = {
type = "app";
program = "${pkgs.callPackage ./nix/pkgs/extract.nix {}}/bin/ninecraft-extract";
};
};
formatter = pkgs.alejandra;
})
// {
nixosModule = {pkgs, ...}: {
imports = [./nix/nixos];
programs.ninecraft.package = self.packages.${pkgs.system}.ninecraft;
};
homeManagerModule = {pkgs, ...}: {
imports = [./nix/home];
programs.ninecraft.package = self.packages.${pkgs.system}.ninecraft;
};
};
}