A Nix flake for developing and working with Nordic Semiconductor hardware
Find a file
matthewcroughan c2fdf7297e Add LICENSE.md
2023-08-09 16:14:38 +01:00
functions mkZephyrProject: allow appending to the nativeBuildInputs 2023-08-09 16:08:28 +01:00
.gitignore wip 2023-01-15 04:48:49 +00:00
flake.lock init 2023-07-20 19:12:23 +01:00
flake.nix devShell: add comment when entering shellHook about the copying happening in /tmp/nrf-nix 2023-07-25 10:42:09 +01:00
LICENSE.md Add LICENSE.md 2023-08-09 16:14:38 +01:00
README.md foo 2023-07-20 21:00:47 +01:00

Example

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    nrf-nix.url = "github:matthewcroughan/nRF-nix";
  };
  outputs = { self, nixpkgs, nrf-nix, ... }:
  let
    pkgs = import nixpkgs { system = "x86_64-linux"; overlays = [ nrf-nix.overlays.default ]; config = { allowUnfree = true; segger-jlink.acceptLicense = true; }; };
  in
  {
    packages.x86_64-linux.default = pkgs.mkZephyrProject rec {
      name = "example-application";
      app = name;
      board = "actinius_nf9160_ns";
      westWorkspace = pkgs.fetchWestWorkspace {
        url = "https://github.com/nrfconnect/sdk-nrf";
        rev = "v2.1.0";
        sha256 = "sha256-LoL0SzPiKfXxWnZdbx+3m0bzyPeHovWNlmkFQsmiR7g=";
      };
      src = self;
    };
  };
}