From 7abcec02bf7b89c8a2e97a7dddd6f64bdfe13f9d Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sun, 22 Dec 2024 06:02:46 +0000 Subject: [PATCH] shells/touchhle: init --- flake.nix | 1 + shells/touchhle/default.nix | 44 +++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 shells/touchhle/default.nix diff --git a/flake.nix b/flake.nix index 2f5d7ec..5043ce2 100644 --- a/flake.nix +++ b/flake.nix @@ -44,6 +44,7 @@ rust9x = pkgs.callPackage ./shells/rust9x { }; rust-libclang = pkgs.callPackage ./shells/rust-libclang { }; ryujinx = pkgs.callPackage ./shells/ryujinx { }; + touchhle = pkgs.callPackage ./shells/touchhle { }; uboot = pkgs.callPackage ./shells/uboot { }; zephyr = pkgs.callPackage ./shells/zephyr { }; }); diff --git a/shells/touchhle/default.nix b/shells/touchhle/default.nix new file mode 100644 index 0000000..96da143 --- /dev/null +++ b/shells/touchhle/default.nix @@ -0,0 +1,44 @@ +{ + lib, + mkShell, + cargo, + rustc, + rustfmt, + clippy, + rust, + + cmake, + pkg-config, + + boost, + sndio, + libGL, + pulseaudio, + pipewire, + SDL2, + openal, +}: +mkShell { + packages = [ + rustc + cargo + rustfmt + clippy + + cmake + pkg-config + + boost + sndio + pulseaudio + pipewire + SDL2 + openal + ]; + + LD_LIBRARY_PATH = "${lib.makeLibraryPath [ + libGL + ]}"; + + RUST_SRC_PATH = "${rust.packages.stable.rustPlatform.rustLibSrc}"; +}