Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, pyproject-nix
, lib
, fetchurl
, python38
, python310
, newScope
, openocd
, gcc_multi
Expand Down Expand Up @@ -32,7 +32,7 @@ let
};

sdkArgs = {
python3 = python38;
python3 = python310;
};

in
Expand All @@ -52,6 +52,8 @@ in {
, which
, cmake
, autoPatchelfHook
, libxcrypt-legacy
, ncurses
, python3
, targets ? [ ]
}:
Expand All @@ -76,7 +78,7 @@ in {
++ lib.optional (!stdenv.isDarwin) autoPatchelfHook
;

buildInputs = [ stdenv.cc.cc python3 ];
buildInputs = [ stdenv.cc.cc ncurses libxcrypt-legacy python3 ];

dontBuild = true;
dontUseCmakeConfigure = true;
Expand Down
38 changes: 0 additions & 38 deletions flake.lock

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

12 changes: 2 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@
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, nixpkgs-python }: (
outputs = { self, nixpkgs, zephyr, pyproject-nix }: (
let
inherit (nixpkgs) lib;
forAllSystems = lib.genAttrs lib.systems.flakeExposed;
Expand All @@ -38,13 +35,8 @@
system:
let
pkgs = nixpkgs.legacyPackages.${system};

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

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