{ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; systems.url = "github:nix-systems/default"; devenv.url = "github:cachix/devenv"; devenv.inputs.nixpkgs.follows = "nixpkgs"; }; nixConfig = { extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="; extra-substituters = "https://devenv.cachix.org"; }; outputs = { self, nixpkgs, devenv, systems, ... }@inputs: let forEachSystem = nixpkgs.lib.genAttrs (import systems); in { packages = forEachSystem (system: { devenv-up = self.devShells.${system}.default.config.procfileScript; devenv-test = self.devShells.${system}.default.config.test; }); devShells = forEachSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; in { default = devenv.lib.mkShell { inherit inputs pkgs; modules = [rec { # https://devenv.sh/reference/options/ packages = with pkgs; [ hello udev alsa-lib vulkan-loader xorg.libX11 xorg.libXcursor xorg.libXi #xorg.libXrandr # To use the x11 feature libxkbcommon wayland # To use the wayland feature ]; #env = { # RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; #}; enterShell = '' hello ''; env = { LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath packages; }; languages.rust = { enable = true; }; processes.hello.exec = "hello"; }]; }; }); }; }