[XMonad] Add flake for imalison-xmonad

This commit is contained in:
Ivan Malison 2021-08-01 01:12:53 -06:00
parent 8a3457a28c
commit 00d03e9774
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -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; } ;
}