-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
62 lines (61 loc) · 1.64 KB
/
Copy pathflake.nix
File metadata and controls
62 lines (61 loc) · 1.64 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
mika-shell.url = "github:MikaShell/mika-shell";
};
outputs = {
nixpkgs,
mika-shell,
...
}: let
forAllSystems = nixpkgs.lib.genAttrs [
"aarch64-linux"
"x86_64-linux"
];
in {
packages = forAllSystems (system: let
pkgs = import nixpkgs {inherit system;};
frontend = pkgs.callPackage ./nix/package-frontend.nix {};
mika-shell-frontend = pkgs.callPackage ./nix/package.nix {
mika-shell-frontend = frontend;
};
in {
default = mika-shell-frontend;
});
devShells = forAllSystems (system: let
pkgs = import nixpkgs {inherit system;};
in {
default = pkgs.mkShell {
packages = with pkgs;
[
nodejs
tailwindcss
tailwindcss-language-server
svelte-language-server
]
++ [
mika-shell.packages.${system}.debug
];
MIKASHELL_CONFIG_DIR = "./config";
GST_PLUGIN_SYSTEM_PATH_1_0 = with pkgs;
lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gst-libav
gst_all_1.gstreamer
];
};
});
};
nixConfig = {
# substituers will be appended to the default substituters when fetching packages
extra-substituters = [
"https://cache.garnix.io"
];
extra-trusted-public-keys = [
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
];
};
}