patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob 87cbf16aadc8b357efa3f9469be124d83b8e7713 603 bytes (raw)
name: tools/spectrum-installer/shell.nix 	 # note: path name is non-authoritative(*)

 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
 
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2025 iced contributors
# SPDX-FileCopyrightText: 2026 Johannes Süllner <johannes.suellner@mailbox.org>

# based on https://github.com/iced-rs/iced/blob/master/DEPENDENCIES.md
# last updated 2026-01-11

{ pkgs ? import <nixpkgs> { } }:

let
  dlopenLibraries = with pkgs; [
    libxkbcommon

    # GPU backend
    vulkan-loader

    # Window system
    wayland
  ];
in pkgs.mkShell {
  nativeBuildInputs = with pkgs; [
    cargo
    lldb
    rustfmt
  ];

  env.RUSTFLAGS = "-C link-arg=-Wl,-rpath,${pkgs.lib.makeLibraryPath dlopenLibraries}";
}

debug log:

solving 87cbf16 ...
found 87cbf16 in https://inbox.spectrum-os.org/spectrum-devel/20260204175543.22164-3-johannes.suellner@mailbox.org/

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20260204175543.22164-3-johannes.suellner@mailbox.org/
diff --git a/tools/spectrum-installer/shell.nix b/tools/spectrum-installer/shell.nix
new file mode 100644
index 0000000..87cbf16

Checking patch tools/spectrum-installer/shell.nix...
Applied patch tools/spectrum-installer/shell.nix cleanly.

index at:
100644 87cbf16aadc8b357efa3f9469be124d83b8e7713	tools/spectrum-installer/shell.nix

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).