37 lines
879 B
Nix
37 lines
879 B
Nix
{
|
|
description = "Play with XHCI from within linux";
|
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
|
|
outputs =
|
|
{ self, nixpkgs }:
|
|
let
|
|
inherit (nixpkgs) lib;
|
|
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
|
|
in
|
|
{
|
|
devShells = forAllSystems (
|
|
system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
default =
|
|
with pkgs;
|
|
mkShell {
|
|
packages = [
|
|
rustPackages.cargo
|
|
rustPackages.rustc
|
|
rustPackages.rustfmt
|
|
rustPackages.clippy
|
|
];
|
|
|
|
RUST_SRC_PATH = "${rustPackages.rustPlatform.rustLibSrc}";
|
|
};
|
|
}
|
|
);
|
|
|
|
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style);
|
|
};
|
|
}
|