From 00d03e9774047188c0f232bf6854584fd94c64a4 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 1 Aug 2021 01:12:53 -0600 Subject: [PATCH] [XMonad] Add flake for imalison-xmonad --- dotfiles/config/xmonad/flake.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dotfiles/config/xmonad/flake.nix diff --git a/dotfiles/config/xmonad/flake.nix b/dotfiles/config/xmonad/flake.nix new file mode 100644 index 00000000..2df37579 --- /dev/null +++ b/dotfiles/config/xmonad/flake.nix @@ -0,0 +1,26 @@ +{ + inputs = { + flake-utils.url = github:numtide/flake-utils; + xmonad-contrib = { + url = path:./xmonad-contrib; + inputs.nixpkgs.follows = "nixpkgs"; + }; + xmonad = { + url = path:./xmonad; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + outputs = { self, flake-utils, nixpkgs, xmonad, xmonad-contrib }: + let + overlay = import ./overlay.nix; + overlays = [ overlay xmonad.overlay xmonad-contrib.overlay ]; + in flake-utils.lib.eachDefaultSystem (system: + let pkgs = import nixpkgs { inherit system overlays; config.allowBroken = true; }; + in + rec { + devShell = pkgs.haskellPackages.shellFor { + packages = p: [ p.imalison-xmonad ]; + }; + defaultPackage = pkgs.haskellPackages.imalison-xmonad; + }) // { inherit overlay overlays; } ; +}