48686ca0d6
Implement a parser for tools, and instantiate once for arglib-netencode arguments (parsed by the new netencode parser) and one just from the PATH for testing from the repl. Change-Id: Id0cf264100123a87700880c7230d68426224fd0d Reviewed-on: https://cl.tvl.fyi/c/depot/+/7798 Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
27 lines
719 B
Nix
27 lines
719 B
Nix
{ depot, pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
cas-serve =
|
|
lib.pipe ./MailboxOrg.hs [
|
|
(depot.users.Profpatsch.writers.writeHaskellInteractive "mailbox-org"
|
|
{
|
|
libraries = [
|
|
depot.users.Profpatsch.my-prelude
|
|
depot.users.Profpatsch.execline.exec-helpers-hs
|
|
depot.users.Profpatsch.arglib.netencode.haskell
|
|
pkgs.haskellPackages.aeson
|
|
pkgs.haskellPackages.http-conduit
|
|
pkgs.haskellPackages.aeson-better-errors
|
|
|
|
];
|
|
ghcArgs = [ "-threaded" ];
|
|
})
|
|
(depot.users.Profpatsch.arglib.netencode.with-args {
|
|
BINS = depot.nix.getBins pkgs.dovecot_pigeonhole [ "sieve-test" ];
|
|
})
|
|
];
|
|
|
|
|
|
in
|
|
cas-serve
|