query
On this page

sdistTarball

pkgs.haskell.lib.sdistTarball

Docs pulled from | This Revision | 21 minutes ago


Create a source distribution tarball like those found on hackage, instead of building the package.


Noogle detected

Implementation

The following is the current implementation of this function.

sdistTarball =
    pkg:
    lib.overrideDerivation pkg (drv: {
      name = "${drv.pname}-source-${drv.version}";
      # Since we disable the haddock phase, we also need to override the
      # outputs since the separate doc output will not be produced.
      outputs = [ "out" ];
      buildPhase = "./Setup sdist";
      haddockPhase = ":";
      checkPhase = ":";
      installPhase = "install -D dist/${drv.pname}-*.tar.gz $out/${drv.pname}-${drv.version}.tar.gz";
      fixupPhase = ":";
    });