{ description = "Build my xmonad config"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; inputs.flake-utils.url = "github:numtide/flake-utils"; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; in { devShells.default = import ./shell.nix { inherit pkgs; }; }) // { packages.aarch64-linux.default = # Notice the reference to nixpkgs here. with import nixpkgs { system = "aarch64-linux"; }; haskellPackages.callCabal2nix "xmonad-config" ./. {}; }; }