Initial commit
This commit is contained in:
21
flake.nix
Normal file
21
flake.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
description = "Wrapper for arduino-cli";
|
||||
|
||||
outputs = { self }: {
|
||||
mkArduinoPackageOverlay = packageIndexFile: (self: super: {
|
||||
arduinoPackages = self.lib.recursiveUpdate (super.arduinoPackages or {}) (self.callPackage ./packages.nix {
|
||||
packageIndex = builtins.fromJSON (builtins.readFile packageIndexFile);
|
||||
});
|
||||
});
|
||||
|
||||
mkArduinoLibraryOverlay = libraryIndexFile: (self: super: {
|
||||
arduinoLibraries = self.lib.recursiveUpdate (super.arduinoLibraries or {}) (self.callPackage ./libraries.nix {
|
||||
libraryIndex = builtins.fromJSON (builtins.readFile libraryIndexFile);
|
||||
});
|
||||
});
|
||||
|
||||
overlay = (self: super: {
|
||||
wrapArduinoCLI = self.callPackage ./wrap-arduino-cli.nix { };
|
||||
});
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user