Skip to content
Snippets Groups Projects
flake.nix 599 B
Newer Older
Benjamin Koch's avatar
Benjamin Koch committed
{
  description = "Toolchain for ESP32";

  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09";

  outputs = { self, nixpkgs }: {
Benjamin Koch's avatar
Benjamin Koch committed

    packages = let
      # doesn't work because it doesn't update the packages used by callPackage
      #fixOverlay = arch: let super = nixpkgs.legacyPackages.${arch}; x = self.overlay (super // x) super; in x;
      fixOverlay = system: import ./release.nix { pkgs = nixpkgs.legacyPackages.${system}; inherit system; };
    in { aarch64-linux = fixOverlay "aarch64-linux"; x86_64-linux = fixOverlay "x86_64-linux"; };
Benjamin Koch's avatar
Benjamin Koch committed
  };
}