more cleanup

This commit is contained in:
nek0 2023-12-16 06:42:53 +01:00
parent 2c8f4cd4b1
commit c255808595
2 changed files with 16 additions and 20 deletions

View file

@ -1,4 +1,6 @@
{ pkgs ? import <nixpkgs> {}, self ? ./., packageName ? "chaoszone" }: { pkgs ? import <nixpkgs> {}
, self ? ./., packageName ? "chaoszone"
}:
let let
gitignore = dir: pkgs.nix-gitignore.gitignoreSource [] dir; gitignore = dir: pkgs.nix-gitignore.gitignoreSource [] dir;
in in

View file

@ -1,20 +1,14 @@
{ pkgs ? import <nixpkgs> {}, chaoszone ? null}: { pkgs ? import <nixpkgs> {}
, chaoszone ? import ./default.nix { inherit pkgs; packageName = "chaoszone"; }
}:
let pkgs.haskellPackages.shellFor {
chaoszone_cz = if isNull chaoszone packages = p: [ chaoszone ];
then withHoogle = true;
(import ./default.nix {inherit pkgs; packageName = "chaoszone";}) buildInputs = with pkgs.haskellPackages; with pkgs; [
else haskell-language-server
chaoszone; ghcid
gitignore = dir: pkgs.nix-gitignore.gitignoreSource [] dir; cabal-install
in vim
pkgs.haskellPackages.shellFor { ];
packages = p: [ chaoszone_cz ]; }
withHoogle = true;
buildInputs = with pkgs.haskellPackages; with pkgs; [
haskell-language-server
ghcid
cabal-install
vim
];
}