{ description = "Cells"; inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-24.05"; outputs = { self, nixpkgs }: let pkgs = import nixpkgs { system = "x86_64-linux"; }; libraryPath = pkgs.lib.makeLibraryPath [ pkgs.wayland pkgs.libxkbcommon pkgs.libGL ]; in { packages.x86_64-linux.default = pkgs.rustPlatform.buildRustPackage { name = "cells"; cargoLock.lockFile = ./Cargo.lock; src = pkgs.lib.cleanSource ./.; nativeBuildInputs = [ pkgs.makeWrapper ]; postFixup = "wrapProgram $out/bin/cells --set LD_LIBRARY_PATH ${libraryPath}"; }; devShells.x86_64-linux.default = pkgs.mkShell { name = "dev-shell-cells"; buildInputs = [ pkgs.cargo pkgs.rustc ]; shellHook = "export LD_LIBRARY_PATH=${libraryPath}"; }; }; }