40 lines
781 B
Nix
40 lines
781 B
Nix
{
|
|
description = "Ambilight development environment";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs =
|
|
{ self, nixpkgs }:
|
|
let
|
|
supportedSystems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
|
pkgsFor = system: nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
devShells = forAllSystems (
|
|
system:
|
|
let
|
|
pkgs = pkgsFor system;
|
|
in
|
|
{
|
|
default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
pkg-config
|
|
rustc
|
|
cargo
|
|
rustfmt
|
|
clippy
|
|
rustPlatform.bindgenHook
|
|
|
|
];
|
|
};
|
|
}
|
|
);
|
|
};
|
|
}
|