Last active
February 13, 2026 00:50
-
-
Save shapr/5b5e072adc162a1d51b14a5c4d0786d3 to your computer and use it in GitHub Desktop.
iroh-live build attempt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # this compiles, but rust-lld fails to link | |
| { | |
| description = "magic-cap is a command line utility for an always encrypted archive file type."; | |
| inputs = { | |
| nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05"; | |
| nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
| rust-overlay = { url = "github:oxalica/rust-overlay"; }; | |
| }; | |
| outputs = { nixpkgs, nixpkgs-unstable, rust-overlay, ... }: | |
| let | |
| system = "x86_64-linux"; | |
| in { | |
| packages.${system}.default = | |
| let | |
| pkgs = import nixpkgs { inherit system; }; | |
| in pkgs.rustPlatform.buildRustPackage { | |
| pname = "magic_cap"; | |
| buildInputs = [ ]; | |
| version = "0.1.0"; | |
| cargoLock.lockFile = ./Cargo.lock; | |
| src = pkgs.lib.cleanSource ./.; | |
| }; | |
| devShells.${system}.default = | |
| let pkgs = import nixpkgs { | |
| inherit system; | |
| overlays = [ (import rust-overlay) ]; | |
| config.allowUnfree = true; | |
| }; | |
| upkgs = import nixpkgs-unstable { inherit system; }; | |
| in | |
| pkgs.mkShell { | |
| libraries = with pkgs; [ wayland-utils waylandpp ]; | |
| packages = with pkgs; [ | |
| xorg.libxcb | |
| rust-bin.stable.latest.default upkgs.rust-analyzer cargo cargo-make | |
| pkg-config clippy ffmpeg-full wayland wayland-protocols | |
| wayland-scanner pipewire llvmPackages.clangUseLLVM alsa-lib | |
| egl-wayland pkgs.rustPlatform.bindgenHook libGL libtool automake | |
| autoconf libgbm | |
| ]; | |
| }; | |
| }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment