Skip to content

Commit

Permalink
Provide a mechanism by which users can customize the nix devShell
Browse files Browse the repository at this point in the history
  • Loading branch information
colonelpanic8 authored and slotThe committed Mar 5, 2022
1 parent ca25b36 commit f1ea1e5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ tags

stack.yaml.lock

flake.lock
11 changes: 8 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@
};
overlays = xmonad.overlays ++ [ overlay ];
in flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system overlays; };
let
pkgs = import nixpkgs { inherit system overlays; };
modifyDevShell =
if builtins.pathExists ./develop.nix
then import ./develop.nix
else _: x: x;
in
rec {
devShell = pkgs.haskellPackages.shellFor {
devShell = pkgs.haskellPackages.shellFor (modifyDevShell pkgs {
packages = p: [ p.xmonad-contrib ];
nativeBuildInputs = [ pkgs.cabal-install ];
};
});
defaultPackage = pkgs.haskellPackages.xmonad-contrib;
}) // { inherit overlay overlays; } ;
}

0 comments on commit f1ea1e5

Please sign in to comment.