-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(flake): setup
flake.nix
to work with bevy dependencies
- Loading branch information
Showing
5 changed files
with
101 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/target | ||
.direnv/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,47 @@ | ||
{ | ||
description = "Your Flake Description"; | ||
description = "gbp-rs"; | ||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
nixpkgs.inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, flake-utils }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
pkgs = import nixpkgs { | ||
inherit system; | ||
}; | ||
in | ||
with pkgs; | ||
outputs = { | ||
self, | ||
nixpkgs, | ||
flake-utils, | ||
}: | ||
flake-utils.lib.eachDefaultSystem (system: let | ||
# system = "x86_64-linux"; | ||
# pkgs = nixpkgs.legacyPackages.${system}; | ||
pkgs = import nixpkgs {inherit system;}; | ||
in | ||
with pkgs; { | ||
# devShells.${system}.default = pkgs.mkShell rec { | ||
# formatter.${system} = pkgs.alejandra; | ||
devShells.default = pkgs.mkShell rec { | ||
nativeBuildInputs = [ | ||
pkgs.pkg-config | ||
]; | ||
buildInputs = [ | ||
pkgs.udev | ||
pkgs.alsa-lib | ||
pkgs.vulkan-loader | ||
pkgs.xorg.libX11 | ||
pkgs.xorg.libXcursor | ||
pkgs.xorg.libXi | ||
pkgs.xorg.libXrandr # To use the x11 feature | ||
pkgs.libxkbcommon | ||
pkgs.wayland # To use the wayland feature | ||
|
||
mkShell rec { | ||
nativeBuildInputs = [ | ||
pkg-config | ||
]; | ||
buildInputs = [ | ||
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 | ||
]; | ||
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs; | ||
} | ||
); | ||
} | ||
pkgs.bacon | ||
pkgs.rustup | ||
]; | ||
|
||
# shellHook = '' | ||
# echo hello | ||
# ''; | ||
|
||
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs; | ||
}; | ||
}); | ||
} |
This file contains 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