From 48686ca0d60e5be1d909ee9921ce66152367eb2d Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 8 Jan 2023 23:49:32 +0100 Subject: feat(users/Profpatsch/mailbox-org): Set up passing of sieve-test 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 Tested-by: BuildkiteCI --- users/Profpatsch/mailbox-org/default.nix | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) (limited to 'users/Profpatsch/mailbox-org/default.nix') diff --git a/users/Profpatsch/mailbox-org/default.nix b/users/Profpatsch/mailbox-org/default.nix index 217fd498e5..99b9d45b7d 100644 --- a/users/Profpatsch/mailbox-org/default.nix +++ b/users/Profpatsch/mailbox-org/default.nix @@ -2,18 +2,26 @@ let - cas-serve = depot.users.Profpatsch.writers.writeHaskellInteractive "mailbox-org" - { - libraries = [ - depot.users.Profpatsch.my-prelude - depot.users.Profpatsch.execline.exec-helpers-hs - pkgs.haskellPackages.aeson - pkgs.haskellPackages.http-conduit - pkgs.haskellPackages.aeson-better-errors + 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" ]; + }) + ]; - ]; - ghcArgs = [ "-threaded" ]; - } ./MailboxOrg.hs; in cas-serve -- cgit 1.4.1