-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathflake.nix
34 lines (31 loc) · 773 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
28
29
30
31
32
33
34
{
description = "spectrum-analyzer Rust crate";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
};
outputs =
{ self, nixpkgs }@inputs:
{
devShells.x86_64-linux.default =
let
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
# Mainly runtime deps of the examples, not the base lib.
runtimeDeps = with pkgs; [
alsa-lib
fontconfig
libxkbcommon
xorg.libXcursor
xorg.libX11
];
in
pkgs.mkShell {
packages =
with pkgs;
[
pkg-config
]
++ runtimeDeps;
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath runtimeDeps}";
};
};
}