Skip to content

Commit 49c6fe9

Browse files
committed
fixup! fixup! build: add check workflow
1 parent e92fcad commit 49c6fe9

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

examples/external-deps/flake.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
packages = forAllSystems (
2323
system:
2424
let
25-
pkgs = nixpkgs.legacyPackages.${system};
25+
pkgs = import nixpkgs {
26+
inherit system;
27+
overlays = [ platformio2nix.overlays.default ];
28+
};
2629
in
2730
{
28-
default = pkgs.callPackage ./package.nix {
29-
# TODO: provide an overlay
30-
inherit (platformio2nix.packages.${system}) makePlatformIOSetupHook;
31-
};
31+
default = pkgs.callPackage ./package.nix { };
3232
}
3333
);
3434
};

examples/marlin/flake.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
packages = forAllSystems (
2323
system:
2424
let
25-
pkgs = nixpkgs.legacyPackages.${system};
25+
pkgs = import nixpkgs {
26+
inherit system;
27+
overlays = [ platformio2nix.overlays.default ];
28+
};
2629
in
2730
{
28-
default = pkgs.callPackage ./package.nix {
29-
# TODO: provide an overlay
30-
inherit (platformio2nix.packages.${system}) makePlatformIOSetupHook;
31-
};
31+
default = pkgs.callPackage ./package.nix { };
3232
}
3333
);
3434
};

flake.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,10 @@
149149
RUST_SRC_PATH = "${rustToolchain.passthru.availableComponents.rust-src}";
150150
};
151151
}
152-
);
152+
)
153+
// {
154+
overlays.default = final: prev: {
155+
makePlatformIOSetupHook = final.callPackage ./setup-hook.nix { };
156+
};
157+
};
153158
}

0 commit comments

Comments
 (0)