about summary refs log tree commit diff
path: root/users/Profpatsch/mailbox-org/default.nix
blob: 0387c7b12de310bc2007d3e9eda0bc7870d23329 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ depot, pkgs, lib, ... }:

let
  mailbox-org = pkgs.haskellPackages.mkDerivation {
    pname = "mailbox-org";
    version = "0.1.0";

    src = depot.users.Profpatsch.exactSource ./. [
      ./mailbox-org.cabal
      ./AesonQQ.hs
      ./MailboxOrg.hs
    ];

    libraryHaskellDepends = [
      depot.users.Profpatsch.my-prelude
      depot.users.Profpatsch.execline.exec-helpers-hs
      depot.users.Profpatsch.arglib.netencode.haskell
      pkgs.haskellPackages.pa-prelude
      pkgs.haskellPackages.aeson
      pkgs.haskellPackages.http-conduit
      pkgs.haskellPackages.aeson-better-errors
    ];

    isLibrary = false;
    isExecutable = true;
    license = lib.licenses.mit;
  };


in
lib.pipe mailbox-org [
  (x: (depot.nix.getBins x [ "mailbox-org" ]).mailbox-org)
  (depot.users.Profpatsch.arglib.netencode.with-args "mailbox-org" {
    BINS = depot.nix.getBins pkgs.dovecot_pigeonhole [ "sieve-test" ];
  })
]