default.nix 464 Bytes
Newer Older
1
{ pkgs ? import <nixpkgs> { } }:
2
3
with pkgs;
with haskell.lib;
4
let
5
  ignore = [ "dist" "dist-newstyle" "cabal.project.local" ];
6
  keep = name: type:
7
8
9
10
11
    lib.cleanSourceFilter name type && !(lib.elem (baseNameOf name) ignore)
    && !(lib.hasPrefix ".ghc.environment" (baseNameOf name))
    && !(lib.hasPrefix "autogen-" (baseNameOf name));
in haskell.lib.overrideCabal (haskellPackages.callPackage ./bookme.nix { })
(drv: { src = builtins.filterSource keep ./.; })