nix build works! 🎉

Finally got nix build to work and thus even make the app installable
again now that I've switched to a mostly rust backend. I needed to add
cargoSetupHook and rustPlatform to the buildInputs.
This commit is contained in:
Chris Cochrun 2023-04-10 05:21:18 -05:00
parent 04928cc5e6
commit 56981a95c6
4 changed files with 88 additions and 18 deletions

View file

@ -27,6 +27,8 @@
mpv,
ffmpeg_5-full,
# Rust tools
rustPlatform,
# setuptools-rust,
rustc,
cargo,
corrosion
@ -41,7 +43,8 @@ stdenv.mkDerivation rec {
src = ./.;
nativeBuildInputs = [
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
gcc
gnumake
clang
@ -50,15 +53,15 @@ stdenv.mkDerivation rec {
extra-cmake-modules
pkg-config
wrapQtAppsHook
rustc
cargo
corrosion
makeWrapper
# gccStdenv
# stdenv
];
buildInputs = [
rustc
cargo
corrosion
qtbase
qttools
qtquickcontrols2
@ -70,11 +73,15 @@ stdenv.mkDerivation rec {
ki18n
kcoreaddons
mpv
ffmpeg_6-full
ffmpeg_5-full
# libsForQt5.kconfig
];
RUST_BACKTRACE = 1;
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
};
RUST_BACKTRACE = "Full";
# preConfigure = ''
# "${cargo-download}
# '';