Skip to content

Provide Nix devshell flake#42

Open
BinaryQuantumSoul wants to merge 17 commits intofree-explorers:mainfrom
BinaryQuantumSoul:nix
Open

Provide Nix devshell flake#42
BinaryQuantumSoul wants to merge 17 commits intofree-explorers:mainfrom
BinaryQuantumSoul:nix

Conversation

@BinaryQuantumSoul
Copy link

@BinaryQuantumSoul BinaryQuantumSoul commented Sep 9, 2025

This flake adds the multiple dependencies and libraries for Veshell to build. It uses flutter from nixpkgs, but asserts proper version match with Cargo Flutter version. It properly links both Flutter and Flutter Engine for cargo run to be run.

Test with

  • nix develop
  • cargo run or cargo run --profile release

@ProxyVT
Copy link

ProxyVT commented Jan 29, 2026

Unfortunately, I was unable to run veshell following your steps. Below is the execution log after cargo run:

Details
   Compiling veshell v0.1.0 (/home/ulad/Documents/GitHub/veshell)
error: failed to run custom build command for `veshell v0.1.0 (/home/ulad/Documents/GitHub/veshell)`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `/home/ulad/Documents/GitHub/veshell/build/target/debug/build/veshell-829236f62d64bb08/build-script-mod` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=Cargo.toml
  cargo:rerun-if-changed=extra/build/mod.rs
  cargo:rustc-env=CARGO_PROFILE=debug
  cargo:rerun-if-changed=extra/build/flutter_sdk.rs
  cargo:rerun-if-changed=.flutter_sdk/version
  Flutter SDK installed successfully
  cargo:rerun-if-changed=extra/build/shell.rs
  cargo:rerun-if-changed=src/shell/pubspec.yaml
  cargo:rerun-if-changed=src/shell/lib
  Resolving dependencies...
  Downloading packages...
    _fe_analyzer_shared 85.0.0 (93.0.0 available)
    analyzer 7.6.0 (10.0.1 available)
    analyzer_buffer 0.1.10 (0.3.0 available)
    analyzer_plugin 0.13.4 (0.14.1 available)
    build 3.1.0 (4.0.4 available)
    build_daemon 4.0.4 (4.1.1 available)
    build_resolvers 3.0.3 (3.0.4 available)
    build_runner 2.7.1 (2.10.5 available)
    build_runner_core 9.3.1 (9.3.2 available)
    built_value 8.12.0 (8.12.3 available)
    characters 1.4.0 (1.4.1 available)
    code_builder 4.11.0 (4.11.1 available)
    crypto 3.0.6 (3.0.7 available)
    custom_lint 0.8.0 (0.8.1 available)
    custom_lint_builder 0.8.0 (0.8.1 available)
    custom_lint_core 0.8.0 (0.8.2 available)
    custom_lint_visitor 1.0.0+7.7.0 (1.0.0+9.0.0 available)
    dart_style 3.1.1 (3.1.5 available)
    equatable 2.0.7 (2.0.8 available)
    fast_immutable_collections 9.2.1 (11.1.0 available)
    ffi 2.1.4 (2.1.5 available)
    fl_chart 0.70.2 (1.1.1 available)
    flex_color_picker 3.7.1 (3.8.0 available)
    flex_seed_scheme 3.5.1 (4.0.1 available)
    flutter_riverpod 3.0.0 (3.2.0 available)
    flutter_svg 2.2.1 (2.2.3 available)
    freezed 3.2.3 (3.2.4 available)
    hooks_riverpod 3.0.0 (3.2.0 available)
    http 1.5.0 (1.6.0 available)
    jovial_svg 1.1.27 (1.1.28 available)
    json_annotation 4.9.0 (4.10.0 available)
    json_serializable 6.11.1 (6.12.0 available)
    leak_tracker 10.0.9 (11.0.2 available)
    leak_tracker_flutter_testing 3.0.9 (3.0.10 available)
    leak_tracker_testing 3.0.1 (3.0.2 available)
    logger 2.6.1 (2.6.2 available)
    matcher 0.12.17 (0.12.18 available)
    material_color_utilities 0.11.1 (0.13.0 available)
    meta 1.16.0 (1.18.1 available)
    mockito 5.5.0 (5.6.3 available)
    pool 1.5.1 (1.5.2 available)
    riverpod 3.0.0 (3.2.0 available)
    riverpod_analyzer_utils 1.0.0-dev.6 (1.0.0-dev.9 available)
    riverpod_annotation 3.0.0 (4.0.1 available)
    riverpod_generator 3.0.0 (4.0.2 available)
    riverpod_lint 3.0.0 (3.1.2 available)
    source_gen 3.1.0 (4.2.0 available)
    source_helper 1.3.8 (1.3.10 available)
    test 1.25.15 (1.29.0 available)
    test_api 0.7.4 (0.7.9 available)
    test_core 0.6.8 (0.6.15 available)
    universal_io 2.2.2 (2.3.1 available)
    uuid 4.5.1 (4.5.2 available)
    vector_graphics_compiler 1.1.19 (1.1.20 available)
    vector_math 2.1.4 (2.2.0 available)
    very_good_analysis 9.0.0 (10.0.0 available)
    vm_service 15.0.0 (15.0.2 available)
    watcher 1.1.3 (1.2.1 available)
  Got dependencies!
  58 packages have newer versions incompatible with dependency constraints.
  Try `flutter pub outdated` for more information.
  Running build_runner...
    Generating the build script.
    Reading the asset graph.
    Checking for updates.
    Updating the asset graph.
    Building, incremental build.
    0s freezed on 88 inputs; lib/application/model/launch_config.serializable.dart
    0s freezed on 88 inputs: 1 skipped; lib/meta_window/model/meta_popup.serializable.dart
    1s freezed on 88 inputs: 67 skipped; spent 1s tracking; lib/settings/model/setting_property.dart
    1s freezed on 88 inputs: 88 skipped; spent 1s tracking
    0s json_serializable on 404 inputs; lib/application/model/launch_config.serializable.dart
    1s json_serializable on 404 inputs: 404 skipped
    0s riverpod_generator on 404 inputs; lib/application/model/launch_config.serializable.dart
    0s riverpod_generator on 404 inputs: 404 skipped
    0s source_gen:combining_builder on 169 inputs; lib/application/model/launch_config.serializable.dart
    0s source_gen:combining_builder on 169 inputs: 29 skipped; lib/monitor/provider/monitor_by_name.dart
    1s source_gen:combining_builder on 169 inputs: 169 skipped
    Running the post build.
    Writing the asset graph.
  E riverpod_generator on lib/application/provider/image_from_icon_query.dart:
    InvalidTypeException: The type is invalid and cannot be converted to code.
  E riverpod_generator on lib/settings/provider/state/theme_color_setting.dart:
    InvalidTypeException: The type is invalid and cannot be converted to code.
  E riverpod_generator on lib/shared/provider/cursor_position.dart:
    InvalidTypeException: The type is invalid and cannot be converted to code.
    Failed to build with build_runner in 10s; wrote 0 outputs.

  --- stderr
  Failed to update packages.

  thread 'main' (59497) panicked at extra/build/shell.rs:43:9:
  Failed to run build_runner
  stack backtrace:
     0: __rustc::rust_begin_unwind
     1: core::panicking::panic_fmt
     2: build_script_mod::shell::build_shell
     3: build_script_mod::main
     4: core::ops::function::FnOnce::call_once
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
(nix:nix-shell-env) 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants