Unverified Commit 617c28cf authored by maralorn's avatar maralorn Committed by GitHub
Browse files

Merge pull request #249970 from sternenseemann/pandoc-version-match-lib

pandoc: use library's version
parents 8ee65b17 c634dae2
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 ];