meshtastic-esp-ota/flake.nix

31 lines
936 B
Nix
Raw Permalink Normal View History

2024-12-28 17:05:10 +00:00
{
description = "Meshtastic ble OTA client";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
naersk.url = "github:nix-community/naersk";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = inputs@{ flake-parts, naersk, self, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { pkgs, ... }:
let naersk' = pkgs.callPackage naersk { };
in rec {
packages.default = naersk'.buildPackage {
src = ./.;
nativeBuildInputs = with pkgs; [ rustPlatform.bindgenHook pkg-config ];
buildInputs = with pkgs; [ dbus ];
};
devShells.default = pkgs.mkShell {
inputsFrom = [ packages.default ];
buildInputs = with pkgs; [ dbus ];
};
};
flake = {
};
};
}