-
Notifications
You must be signed in to change notification settings - Fork 13
/
flake.nix
49 lines (45 loc) · 1.29 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
{
description = "EasySplash";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.11";
rust.url = "github:nix-community/fenix";
};
outputs = { nixpkgs, rust, ... }:
let
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
in
{
devShell = forAllSystems
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
rust-toolchain = with rust.packages.${system};
let
msrvToolchain = toolchainOf {
channel = "1.66.0";
sha256 = "sha256-S7epLlflwt0d1GZP44u5Xosgf6dRrmr8xxC+Ml2Pq7c=";
};
in
combine [
(msrvToolchain.withComponents [ "rustc" "cargo" "rust-src" "clippy" ])
(latest.withComponents [ "rustfmt" "rust-analyzer" ])
];
in
pkgs.mkShell {
buildInputs = with pkgs; [
glib
gst_all_1.gst-libav
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gstreamer
pkg-config
rust-toolchain
systemd
cargo-release
cargo-outdated
cargo-edit
];
}
);
};
}