From ee751e3bdbdf74d6a5dcfb1e7a6fde6a71cd5461 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Tue, 30 Sep 2025 16:01:39 +0200 Subject: [PATCH] fffuu: use sourceRoot instead of cd-ing in preCompileBuildDriver (prePatch assumes it is executed in the same directory as the cabal file.) --- pkgs/tools/misc/fffuu/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/misc/fffuu/default.nix b/pkgs/tools/misc/fffuu/default.nix index 2b6172d852fc..9a9d57f15425 100644 --- a/pkgs/tools/misc/fffuu/default.nix +++ b/pkgs/tools/misc/fffuu/default.nix @@ -16,17 +16,17 @@ mkDerivation { sha256 = "1qc7p44dqja6qrjbjdc2xn7n9v41j5v59sgjnxjj5k0mxp58y1ch"; }; + postUnpack = '' + sourceRoot="$sourceRoot/haskell_tool" + ''; + postPatch = '' - substituteInPlace haskell_tool/fffuu.cabal \ + substituteInPlace fffuu.cabal \ --replace "containers >=0.5 && <0.6" "containers >= 0.6" \ --replace "optparse-generic >= 1.2.3 && < 1.3" "optparse-generic >= 1.2.3" \ --replace "split >= 0.2.3 && <= 0.2.4" "split >= 0.2.3" ''; - preCompileBuildDriver = '' - cd haskell_tool - ''; - isLibrary = false; isExecutable = true;