let
  netboxAgent = {
    id = "244549";
    hash = "sha256-SePkKEYQGDj6FpuyxZ+1ASeVPA02mCHf0G5i3koMdNw=";
  };
in

{
  "nixos-24.05" = [
    # netbox qrcode plugin
    {
      _type = "commit";
      sha = "ae4bf4c110378ebacb3989c9533726859cfebbfa";
      hash = "sha256-SgHhW9HCkDQsxT3eG4P9q68c43e3sbDHRY9qs7oSt8o=";
    }

    netboxAgent

    {
      id = "275165";
      hash = "sha256-9a26V3Pi8yLD3N9+mC1kvJoruxRTp/qOHapnt6VX7pw=";
    }

    # karla: init at 2.004
    {
      _type = "commit";
      sha = "7c51104112e8ea0e2ac53bf7d535e677f7686a9e";
      hash = "sha256-1TBLzZkvkFhCL8RYVVIUhTyrH3+X1iJIMkyHffmrOWc=";
    }

    # Crabfit: don't depend on all google-fonts
    {
      _type = "static";
      path = ./04-crabfit-karla.patch;
    }
  ];
  "nixos-23.11" = [
    # netbox module
    {
      _type = "commit";
      sha = "163fed297ed65a24241f190d8e954ce1877f9020";
      includes = [ "nixos/modules/services/web-apps/netbox.nix" ];
      hash = "sha256-mjeRxtZozgLNzHkCxcTs3xnonNPkmPoaGxawixC9jfo=";
    }

    # netbox qrcode plugin
    {
      _type = "commit";
      sha = "ae4bf4c110378ebacb3989c9533726859cfebbfa";
      hash = "sha256-SgHhW9HCkDQsxT3eG4P9q68c43e3sbDHRY9qs7oSt8o=";
    }

    netboxAgent

    # missing jsonargparse deps for netbox-agent
    {
      # json arg parse dep: typesched-client
      _type = "commit";
      sha = "b1770afd23a7a1ebb4e5bccd8d34dfb3a58a4341";
      hash = "sha256-PNUOPgmNFQr+bwG8MQiwlI4+zkDKLL3e1GgHHskX/Dk=";
    }
    {
      # json arg parse dep: reconplogger
      _type = "commit";
      sha = "3835e47059eee32eaf5ef0eb03fce90e8c9b8ab4";
      hash = "sha256-owJL1nmYfEXSHekBGgbJrTkl3OpX6dG9oq3mjN4Xgj8=";
    }
    {
      # json arg parse dep: logmatic
      _type = "commit";
      sha = "b0de35af031b4282ac99919384f029a18704d819";
      hash = "sha256-0nJzF2WMPNs2/zI65T1j9DQ0kORDKCu3H2PWjd/bXuo=";
    }
    {
      # init at 4.27.2
      _type = "commit";
      sha = "aa724f81163725b54a06623d191de6d4c064c5ea";
      hash = "sha256-ZWOVpVVsmjBCCiMe/j4YKz6YP4m5I8TTbqWNqBaMtKA=";
    }
    {
      # 4.27.2 -> 4.27.3
      id = "284460";
      hash = "sha256-di9F8d5l0QDWt9yNpamHMyMm4AVxnsRko8+/Ruo7G3I=";
    }
    {
      # 4.27.3 -> 4.27.4
      id = "285873";
      hash = "sha256-GRytcYvIsMP2RfHlmOJIH3po2/KmfZ3fDwo3YUyXGEU=";
    }
    {
      # 4.27.4 -> 4.27.5
      id = "288546";
      hash = "sha256-iHXwZQKlaWmbd9kJbm6YyjIc3bPFHGbIghYRCPsSGHo=";
    }
    {
      # 4.27.5 -> 4.27.6
      id = "296359";
      hash = "sha256-BHevlu8eqkoRgxwFMoS9bkT/9+w0Hfp3JXWh6UKovUk=";
    }
    {
      # 4.27.6 -> 4.27.7
      id = "297825";
      hash = "sha256-tu91+T1G/sHfCLfLL4Jk/zLU/QwnHLbpxiYzRBJXFXw=";
    }

    # castopod: 1.6.4 -> 1.7.0 + ajout du support de loadcredentials
    {
      _type = "static";
      path = ./01-castopod.patch;
    }

    # nixos/nextcloud: Rename autocreate (a no-op) to verify_bucket_exists
    {
      _type = "static";
      path = ./03-nextcloud.patch;
    }
  ];

  "nixos-unstable" = [
    netboxAgent

    # netbox qrcode plugin
    {
      _type = "commit";
      sha = "ae4bf4c110378ebacb3989c9533726859cfebbfa";
      hash = "sha256-SgHhW9HCkDQsxT3eG4P9q68c43e3sbDHRY9qs7oSt8o=";
    }
  ];

  "proxmox-nixos" = [
    {
      _type = "static";
      path = ./05-pmnos-correctness-build-directory.patch;
    }
  ];
}