query
On this page

onlyBin

pkgs.onlyBin

Docs pulled from | This Revision | 17 minutes ago


Produce a derivation that links to the target derivation's /bin, and only /bin.

This is useful when your favourite package doesn't have a separate bin output and other contents of the package's output (e.g. setup hooks) cause trouble when used in your environment.

Inputs

drv

1. Function argument


Noogle detected

Implementation

The following is the current implementation of this function.

onlyBin =
    drv:
    runCommand "${drv.name}-only-bin" { } ''
      mkdir -p $out
      ln -s ${lib.getBin drv}/bin $out/bin
    '';