add templates
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
description = "Example flake with a devShell";
|
||||||
|
|
||||||
|
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
|
outputs = { nixpkgs, ... }:
|
||||||
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
|
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
|
||||||
|
in {
|
||||||
|
devShells.${system}.arduino = pkgs.mkShell {
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
hello
|
||||||
|
nodejs
|
||||||
|
unzip
|
||||||
|
unrar
|
||||||
|
vscode.fhs
|
||||||
|
pkgsi686Linux.glibc
|
||||||
|
pkgsCross.avr.buildPackages.gcc
|
||||||
|
platformio-core
|
||||||
|
glibc_multi
|
||||||
|
clang
|
||||||
|
clang-tools
|
||||||
|
];
|
||||||
|
shellHook = ''
|
||||||
|
echo "Welcome to the devShell!"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user