forked from notation-fun/notation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
48 lines (47 loc) · 1.2 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
inputs = {
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-utils.url = "github:numtide/flake-utils";
naersk = {
url = "github:nmattia/naersk";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = { self, fenix, flake-utils, naersk, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
/*
defaultPackage = (naersk.lib.${system}.override {
inherit (fenix.packages.${system}.minimal) cargo rustc;
}).buildPackage { src = ./.; };
*/
let
overlays = [ fenix.overlay ];
pkgs = import nixpkgs {
inherit system overlays;
};
buildInputs = with pkgs; [
rust-analyzer-nightly
clang
pkg-config
gtk3
xorg.libX11
xorg.libxcb
xorg.libXcursor
xorg.libXrandr
xorg.libXi
alsa-lib
vulkan-loader
wasm-bindgen-cli
];
in with pkgs; {
devShell = mkShell {
buildInputs = buildInputs;
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
};
}
);
}