-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
111 lines (103 loc) · 2.92 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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ rust-overlay.overlays.default ];
};
libraries = with pkgs; [
webkitgtk
gtk3
cairo
gdk-pixbuf
fuse3
libxkbcommon
glib
dbus
sqlite
xorg.libXcursor
fontconfig
freetype
xorg.libXrandr
xorg.libXi
xorg.libX11
openssl_3
librsvg
libclang
lm_sensors
vulkan-headers
vulkan-loader
wayland
llvmPackages_15.libllvm
gst_all_1.gstreamer
# Common plugins like "filesrc" to combine within e.g. gst-launch
gst_all_1.gst-plugins-base
# Specialized plugins separated by quality
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gst-plugins-rs
# Plugins to reuse ffmpeg to play almost every video format
gst_all_1.gst-libav
# Support the Video Audio (Hardware) Acceleration API
gst_all_1.gst-vaapi
];
packages = with pkgs; [
curl
protobuf
wget
wayland
pkg-config
fontconfig
freetype
dbus
openssl_3
python3
fuse3
glib
gtk3
vulkan-headers
vulkan-loader
sqlite
lm_sensors
libsoup
clang
sass
librsvg
(rust-bin.beta.latest.default.override {
extensions = [ "rust-src" "rust-analyzer" ];
})
gst_all_1.gstreamer
# Common plugins like "filesrc" to combine within e.g. gst-launch
gst_all_1.gst-plugins-base
# Specialized plugins separated by quality
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gst-plugins-rs
# Plugins to reuse ffmpeg to play almost every video format
gst_all_1.gst-libav
# Support the Video Audio (Hardware) Acceleration API
gst_all_1.gst-vaapi
];
in {
devShell = pkgs.mkShell {
buildInputs = packages;
shellHook = ''
export PATH="$PATH":"$HOME/.cargo/bin"
export LD_LIBRARY_PATH=${
pkgs.lib.makeLibraryPath libraries
}:$LD_LIBRARY_PATH
export LIBRARY_PATH=${
pkgs.lib.makeLibraryPath libraries
}:$LD_LIBRARY_PATH
'';
};
});
}