Skip to content

Instantly share code, notes, and snippets.

@monomadic
monomadic / nix-shell-winit.md
Last active December 6, 2022 18:43
Creating and compiling a Rust X11 GUI application with Winit under NixOS

Creating and compiling a Rust GUI application under NixOS

Using a Nix-Shell

{ pkgs ? import <nixpkgs> { }, lib ? pkgs.stdenv.lib }:

pkgs.mkShell rec {
  name = "rust-env";