This commit is contained in:
Chris Cochrun 2023-10-08 13:57:57 -05:00
commit 1af939a901
8 changed files with 3559 additions and 0 deletions

52
shell.nix Normal file
View file

@ -0,0 +1,52 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell rec {
name = "lumina";
nativeBuildInputs = [
gtk-layer-shell
gtk3
];
buildInputs = [
gcc
stdenv
gnumake
gdb
pkg-config
makeWrapper
vulkan-loader
wayland
wayland-protocols
libxkbcommon
# podofo
mpv
ffmpeg_5-full
# yt-dlp
# Rust tools
clippy
rustc
cargo
rustfmt
rust-analyzer
];
# cargoDeps = rustPlatform.importCargoLock {
# lockFile = ./Cargo.lock;
# };
RUST_BACKTRACE = "full";
CMAKE_C_COMPILER = "${gcc}/bin/gcc";
CMAKE_CXX_COMPILER = "${gcc}/bin/g++";
# This creates the proper qt env so that plugins are found right.
# shellHook = ''
# setQtEnvironment=$(mktemp --suffix .setQtEnvironment.sh)
# echo "shellHook: setQtEnvironment = $setQtEnvironment"
# makeQtWrapper "/bin/sh" "$setQtEnvironment" "''${qtWrapperArgs[@]}"
# sed "/^exec/d" -i "$setQtEnvironment"
# source "$setQtEnvironment"
# export QT_PLUGIN_PATH="$QT_PLUGIN_PATH:/nix/store/85jx8w2nh1ln4kb0hf3dc6ky0dh6ri24-lightly-qt-0.4.1/lib/qt-5.15.9/plugins"
# '';
}