mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
shell: use nix-shell args to call
This makes the different shell options easier to compose with
This commit is contained in:
parent
8000d569c7
commit
363a8f4036
1 changed files with 21 additions and 24 deletions
23
shell.nix
23
shell.nix
|
|
@ -7,21 +7,19 @@
|
|||
./nix/packages/overlay.nix
|
||||
];
|
||||
},
|
||||
}: rec {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
withXMonad ? false,
|
||||
}: let
|
||||
inherit (pkgs) lib;
|
||||
in
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs;
|
||||
[
|
||||
just
|
||||
jq
|
||||
npins
|
||||
disko
|
||||
];
|
||||
};
|
||||
|
||||
withXMonad = pkgs.mkShell {
|
||||
inputsFrom = [
|
||||
default
|
||||
];
|
||||
packages = with pkgs; [
|
||||
]
|
||||
++ lib.optionals withXMonad [
|
||||
(haskellPackages.ghcWithPackages (self: [
|
||||
self.xmonad-contrib
|
||||
self.xmonad-extras
|
||||
|
|
@ -29,5 +27,4 @@
|
|||
haskell-language-server
|
||||
cabal-install
|
||||
];
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue