xmonad-config/flake.nix
2024-08-28 09:24:27 +03:00

19 lines
606 B
Nix

{
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" ./. {};
};
}