mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Refined repository settings to auto-exclude environment and build-related files. - Introduced a new configuration that streamlines local development and displays key tool versions on setup. - **Documentation** - Expanded contribution guidelines with a dedicated developer resources section linking to guides on development practices and repository structure. - Updated workflow instructions to better assist developers in setting up their environment, especially for those using Nix. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
47 lines
1.3 KiB
Nix
47 lines
1.3 KiB
Nix
{
|
||
description = "Unraid Connect Monorepo Development Environment";
|
||
|
||
inputs = {
|
||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
flake-utils.url = "github:numtide/flake-utils";
|
||
};
|
||
|
||
outputs = { self, nixpkgs, flake-utils }:
|
||
flake-utils.lib.eachDefaultSystem (system:
|
||
let
|
||
pkgs = nixpkgs.legacyPackages.${system};
|
||
in
|
||
{
|
||
devShells.default = pkgs.mkShell {
|
||
buildInputs = with pkgs; [
|
||
# Node.js and pnpm
|
||
nodejs_22
|
||
nodePackages.pnpm
|
||
|
||
# Development tools
|
||
just
|
||
git
|
||
|
||
# libvirt (for development)
|
||
libvirt
|
||
|
||
# Docker (for development)
|
||
docker
|
||
];
|
||
|
||
shellHook = ''
|
||
echo "🚀 Unraid API Development Environment"
|
||
echo ""
|
||
echo "✔︎ BASH version: $BASH_VERSION"
|
||
echo "✔︎ Node.js version: $(node --version)"
|
||
echo "✔︎ pnpm version: $(pnpm --version)"
|
||
echo "✔︎ just version: $(just --version)"
|
||
echo "✔︎ git version: $(git --version)"
|
||
echo "✔︎ docker version: $(docker --version)"
|
||
echo "✔︎ libvirt version: $(virsh --version)"
|
||
echo ""
|
||
'';
|
||
};
|
||
}
|
||
);
|
||
} |