Browse Source

rewrite nix files

master
nek0 4 months ago
parent
commit
639a6d21d5
  1. 11
      default.nix
  2. 8
      shell.nix

11
default.nix

@ -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;
}
];
}

8
shell.nix

@ -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

Loading…
Cancel
Save