···67in
8 (haskell.lib.compose.overrideCabal (drv: {
9+ # pandoc-cli's pandoc executable report the libraries version via --version, match that,
10+ inherit (static.scope.pandoc) version;
11+ # but prevent haskellPackages.mkDerivation from recomputing the src tarball based on that.
12+ inherit (static) src;
13+ # Make it possible to recover the cli version if necessary.
14+ passthru = drv.passthru or {} // {
15+ cliVersion = static.version;
16+ };
17+18 configureFlags = drv.configureFlags or [] ++ ["-fembed_data_files"];
19 buildDepends = drv.buildDepends or [] ++ [haskellPackages.file-embed];
20 buildTools = (drv.buildTools or []) ++ [ removeReferencesTo ];