clean nix files a bit

This commit is contained in:
2023-12-16 06:30:30 +01:00
parent 169a76bd9c
commit df8b17ec36
3 changed files with 13 additions and 16 deletions

View File

@@ -1,8 +1,11 @@
{ pkgs ? import <nixpkgs> {}}:
{ pkgs ? import <nixpkgs> {}, chaoszone ? null}:
let
chaoszone_cz =
pkgs.haskellPackages.callCabal2nix "chaoszone" (gitignore ./.) {};
chaoszone_cz = if isNull chaoszone
then
(import ./default.nix {inherit pkgs; packageName = "chaoszone";})
else
chaoszone;
gitignore = dir: pkgs.nix-gitignore.gitignoreSource [] dir;
in
pkgs.haskellPackages.shellFor {