From 3c313315c93256a91085a8e51c7b89b380a32281 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sun, 11 Jan 2026 11:45:37 +0100 Subject: [PATCH] Add 7digital binary proxying to ruby --- 7digital/Main.hs | 9 +++++++++ kazbek.cabal | 10 ++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 7digital/Main.hs diff --git a/7digital/Main.hs b/7digital/Main.hs new file mode 100644 index 0000000..26cdeb3 --- /dev/null +++ b/7digital/Main.hs @@ -0,0 +1,9 @@ +import Control.Monad (void) +import System.Process (rawSystem) +import System.Environment (getArgs) + +main :: IO () +main = do + arguments <- getArgs + void $ rawSystem "bundle" + $ "exec" : "./bin/7digital.rb" : arguments diff --git a/kazbek.cabal b/kazbek.cabal index 74d7f2a..1615733 100644 --- a/kazbek.cabal +++ b/kazbek.cabal @@ -22,6 +22,7 @@ common warnings aeson ^>= 2.2.3, base >= 4.20 && < 5, bytestring ^>= 0.12.2, + process ^>= 1.6.26, text ^>= 2.1 executable tea-cleaner @@ -51,5 +52,10 @@ executable locopy build-depends: directory ^>= 1.3.9, filepath ^>= 1.5.4, - optparse-applicative ^>= 0.19, - process ^>= 1.6.26 + optparse-applicative ^>= 0.19 + +executable 7digital + import: warnings + main-is: Main.hs + hs-source-dirs: 7digital + build-depends: