mirror of
https://github.com/gamingwithhomie/larp.git
synced 2026-12-06 07:38:36 +00:00
35 lines
970 B
Nix
35 lines
970 B
Nix
{
|
|
description = "Self-contained Linux build and Proton/Wine runtime environment for larp";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
devShells.${system}.default = pkgs.mkShell {
|
|
packages = [
|
|
pkgs.cargo-xwin
|
|
# Unwrapped clang avoids injecting Linux glibc headers into clang-cl while
|
|
# keeping stdenv.cc (cc) intact for host build.rs and proc-macro crates.
|
|
pkgs.llvmPackages_latest.clang-unwrapped
|
|
pkgs.llvmPackages_latest.lld
|
|
pkgs.llvmPackages_latest.llvm
|
|
pkgs.directx-shader-compiler
|
|
pkgs.umu-launcher
|
|
pkgs.winetricks
|
|
pkgs.cabextract
|
|
pkgs.curl
|
|
];
|
|
|
|
shellHook = ''
|
|
export RUSTUP_TOOLCHAIN="''${RUSTUP_TOOLCHAIN:-1.98.1}"
|
|
'';
|
|
};
|
|
};
|
|
}
|