From 388e44b6a8b08e614a443f70e34ec75237f2666b Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Tue, 25 Apr 2023 14:30:49 -0400
Subject: [PATCH] use the simpler, safer `cabal run ...`

`cabal list-bins ...` might output some garbage before outputting the path, so
this breaks :/  Also why do it the hard way when we can do it the easy way!
---
 flake.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flake.nix b/flake.nix
index e8abed6..8943f3c 100644
--- a/flake.nix
+++ b/flake.nix
@@ -54,7 +54,7 @@
             text = ''
               cabal update hackage.haskell.org
               cabal build --enable-tests
-              eval "$(cabal list-bin gbs-downloader-tests)"
+              cabal run gbs-downloader-test
             '';
           }
         }/bin/cabal-build-and-test";
-- 
GitLab