mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49: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
|
./nix/packages/overlay.nix
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
}: rec {
|
withXMonad ? false,
|
||||||
default = pkgs.mkShell {
|
}: let
|
||||||
packages = with pkgs; [
|
inherit (pkgs) lib;
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
|
packages = with pkgs;
|
||||||
|
[
|
||||||
just
|
just
|
||||||
jq
|
jq
|
||||||
npins
|
npins
|
||||||
disko
|
disko
|
||||||
];
|
]
|
||||||
};
|
++ lib.optionals withXMonad [
|
||||||
|
|
||||||
withXMonad = pkgs.mkShell {
|
|
||||||
inputsFrom = [
|
|
||||||
default
|
|
||||||
];
|
|
||||||
packages = with pkgs; [
|
|
||||||
(haskellPackages.ghcWithPackages (self: [
|
(haskellPackages.ghcWithPackages (self: [
|
||||||
self.xmonad-contrib
|
self.xmonad-contrib
|
||||||
self.xmonad-extras
|
self.xmonad-extras
|
||||||
|
|
@ -29,5 +27,4 @@
|
||||||
haskell-language-server
|
haskell-language-server
|
||||||
cabal-install
|
cabal-install
|
||||||
];
|
];
|
||||||
};
|
}
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue