{ description = "Jokler points website"; inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; fenix = { url = "github:nix-community/fenix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { self, nixpkgs, fenix, }: let supportedSystems = ["x86_64-linux"]; forEachSystem = nixpkgs.lib.genAttrs supportedSystems; overlayList = [self.overlays.default]; pkgsBySystem = forEachSystem ( system: import nixpkgs { inherit system; overlays = overlayList; } ); in { overlays.default = final: prev: {joklerpoint = final.callPackage ./package.nix {};}; packages = forEachSystem (system: { joklerpoint = let inherit (fenix.packages.${system}.minimal) toolchain; in pkgsBySystem.${system}.callPackage ./package.nix { rustPlatform = pkgsBySystem.${system}.makeRustPlatform { cargo = toolchain; rustc = toolchain; }; }; default = self.packages.${system}.joklerpoint; }); devShells = forEachSystem (system: { default = pkgsBySystem.${system}.callPackage ./shell.nix {}; }); nixosModules = import ./nixos-modules {overlays = overlayList;}; }; }