Skip to content

Commit 75871b7

Browse files
Kathundnot-a-cowfr
andcommitted
chore: update nix flake
nix deving Co-authored-by: not a cow <[email protected]>
1 parent e736f2f commit 75871b7

File tree

3 files changed

+169
-44
lines changed

3 files changed

+169
-44
lines changed

flake.lock

Lines changed: 98 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 71 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,78 @@
11
{
22
description = "Next-generation open source Minecraft launcher";
33

4-
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
5-
inputs.flake-parts.url = "github:hercules-ci/flake-parts";
6-
inputs.crane.url = "github:ipetkov/crane";
4+
inputs = {
5+
nixpkgs = {
6+
url = "github:nixos/nixpkgs/nixos-unstable";
7+
};
8+
9+
flake-parts = {
10+
url = "github:hercules-ci/flake-parts";
11+
};
12+
13+
crane = {
14+
url = "github:ipetkov/crane";
15+
};
16+
17+
rust-overlay = {
18+
url = "github:oxalica/rust-overlay";
19+
inputs = {
20+
nixpkgs = {
21+
follows = "nixpkgs";
22+
};
23+
};
24+
};
25+
};
726

8-
outputs = inputs@{ flake-parts, ... }:
27+
outputs =
28+
inputs@{ flake-parts, rust-overlay, ... }:
929
flake-parts.lib.mkFlake { inherit inputs; } {
10-
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
11-
perSystem = { config, pkgs, ... }: {};
30+
systems = [
31+
"x86_64-linux"
32+
"aarch64-linux"
33+
"x86_64-darwin"
34+
"aarch64-darwin"
35+
];
36+
37+
perSystem =
38+
{ pkgs, system, ... }:
39+
let
40+
pkgs' = import inputs.nixpkgs {
41+
inherit system;
42+
overlays = [ rust-overlay.overlays.default ];
43+
};
44+
in
45+
{
46+
devShells.default = pkgs'.mkShell {
47+
packages = with pkgs'; [
48+
(rust-bin.fromRustupToolchainFile ./rust-toolchain.toml)
49+
50+
cargo-tauri
51+
nodejs
52+
pnpm
53+
54+
pkg-config
55+
openssl
56+
57+
gobject-introspection
58+
at-spi2-atk
59+
atkmm
60+
cairo
61+
gdk-pixbuf
62+
glib
63+
gtk3
64+
harfbuzz
65+
librsvg
66+
libsoup_3
67+
pango
68+
webkitgtk_4_1
69+
];
70+
71+
shellHook = ''
72+
pnpm i
73+
pnpm prep
74+
'';
75+
};
76+
};
1277
};
1378
}

shell.nix

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)