6a15e8e71a
We upstreamed some of these modules to hackage, so I can get rid of it here. Change-Id: I70e1e864a81029cadbbd96cc019a768728431cff Reviewed-on: https://cl.tvl.fyi/c/depot/+/8659 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI Autosubmit: Profpatsch <mail@profpatsch.de> Reviewed-by: sterni <sternenseemann@systemli.org>
36 lines
924 B
Nix
36 lines
924 B
Nix
{ 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" ];
|
|
})
|
|
]
|