{
  description = "Build a cargo project without extra checks";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";

    crane = {
      url = "github:ipetkov/crane";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, crane, flake-utils, ... }:
    flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs {
          inherit system;
        };

        buildInputs = with pkgs; [
          # Add additional build inputs here
          udev alsa-lib vulkan-loader
          # TODO seperate to own wayland specific package
          libxkbcommon wayland
        ] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
          # Additional darwin specific inputs can be set here
          pkgs.libiconv
        ];

        nativeBuildInputs = with pkgs; [
          pkg-config
        ];

        craneLib = crane.lib.${system};
        bevyjam3 = craneLib.buildPackage {
          inherit buildInputs nativeBuildInputs;
          
          src = craneLib.cleanCargoSource (craneLib.path ./.);

          # Additional environment variables can be set directly
          # MY_CUSTOM_VAR = "some value";
          LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
        };
      in
      {
        checks = {
          inherit bevyjam3;
        };

        packages.default = bevyjam3;

        apps.default = flake-utils.lib.mkApp {
          drv = bevyjam3;
        };

        devShells.default = pkgs.mkShell {
          inputsFrom = builtins.attrValues self.checks.${system};

          # Additional dev-shell environment variables can be set directly
          # MY_CUSTOM_DEVELOPMENT_VAR = "something else";
          LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;

          # Extra inputs can be added here
          nativeBuildInputs = with pkgs; [
            cargo
            rustc
          ];
        };
      });
}