Commit c634dae2 authored by sternenseemann's avatar sternenseemann
Browse files

pandoc: use library's version

Since pandoc --version reports this, it makes the whole affair less
counter intuitive.

Also one step towards #249946.
parent 3be1e256
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -6,6 +6,15 @@ let

in
  (haskell.lib.compose.overrideCabal (drv: {
    # pandoc-cli's pandoc executable report the libraries version via --version, match that,
    inherit (static.scope.pandoc) version;
    # but prevent haskellPackages.mkDerivation from recomputing the src tarball based on that.
    inherit (static) src;
    # Make it possible to recover the cli version if necessary.
    passthru = drv.passthru or {} // {
      cliVersion = static.version;
    };

    configureFlags = drv.configureFlags or [] ++ ["-fembed_data_files"];
    buildDepends = drv.buildDepends or [] ++ [haskellPackages.file-embed];
    buildTools = (drv.buildTools or []) ++ [ removeReferencesTo ];