Skip to content

Commit

Permalink
Bump nixpkgs to 24.05 & use Python 3.8 from cachix/nixpkgs-python
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Aug 8, 2024
1 parent fdaed2a commit c458d1f
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 7 deletions.
46 changes: 42 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@
description = "Build Zephyr projects on Nix";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";

pyproject-nix.url = "github:nix-community/pyproject.nix";
pyproject-nix.inputs.nixpkgs.follows = "nixpkgs";

nixpkgs-python.url = "github:cachix/nixpkgs-python";
nixpkgs-python.inputs.nixpkgs.follows = "nixpkgs";

zephyr.url = "github:zephyrproject-rtos/zephyr/v3.7.0";
zephyr.flake = false;
};

outputs = { self, nixpkgs, zephyr, pyproject-nix }: (
outputs = { self, nixpkgs, zephyr, pyproject-nix, nixpkgs-python }: (
let
inherit (nixpkgs) lib;
forAllSystems = lib.genAttrs lib.systems.flakeExposed;
Expand All @@ -35,8 +38,13 @@
system:
let
pkgs = nixpkgs.legacyPackages.${system};

callPackage = lib.callPackageWith (pkgs // {
python38 = nixpkgs-python.packages.${system}."3.8.19";
});

in
clean (pkgs.callPackage ./. {
clean (callPackage ./. {
zephyr-src = zephyr;
inherit pyproject-nix;
})
Expand Down

0 comments on commit c458d1f

Please sign in to comment.