This commit is contained in:
Joe Frikker
2025-12-20 22:03:45 -05:00
parent 6197a361ce
commit 5fe8b45672
2 changed files with 55 additions and 0 deletions

36
flake.nix Normal file
View File

@@ -0,0 +1,36 @@
{
description = "Shibumi Mothership";
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.11";
inputs.flake-parts.url = "github:hercules-ci/flake-parts";
outputs = inputs@{flake-parts, ...}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
perSystem = {pkgs, ...}:
let kube = pkgs.callPackage ./kube.nix {};
in {
packages.default = kube;
packages.kube = kube;
devShells.default = pkgs.mkShell {
name = "kube";
inputsFrom = [kube];
nativeBuildInputs = with pkgs; [
rust-analyzer
clippy
rustfmt
];
shellHook = ''
export RUST_BACKTRACE=1
'';
};
};
};
}