rewrite nix files

This commit is contained in:
nek0 2022-01-17 12:12:25 +01:00
parent 8a90913f2a
commit 639a6d21d5
2 changed files with 6 additions and 13 deletions

View File

@ -1,11 +0,0 @@
{ pkgs ? import <nixpkgs> (import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz))
, haskellCompiler ? "ghc865"
}:
pkgs.haskell-nix.cabalProject {
src = pkgs.haskell-nix.haskellLib.cleanGit { src = ./.; };
ghc = pkgs.buildPackages.pkgs.haskell-nix.compiler.${haskellCompiler};
modules = [
{ packages."fail".components."library".doHaddock = false;
}
];
}

View File

@ -1,4 +1,8 @@
{ pkgs ? import <nixpkgs> {}}:
let
hsPkgs = import ./default.nix {};
chaoszone_cz =
pkgs.haskellPackages.callCabal2nix "chaoszone_cz" (gitignore ./.) {};
gitignore = dir: pkgs.nix-gitignore.gitignoreSource [] dir;
in
hsPkgs.chaoszone.components.all
chaoszone_cz.env