wrapProgram is a thin wrapper around makeWrapper, both defined in
make-wrapper.sh
All they do is exactly the same as the custom wrapper make below.
You can nlook for uses of makeWrapper / wrapProgram across nixpkgs.
kdeWrapper, wrapQtProgram & co are refinements of this concept. They
call
The wrapper derivation approach works nicely, thanks!
I'm trying to understand how to achieve the same with stackable wrappers,
but not sure how. The examples in https://github.com/NixOS/ni
xpkgs/pull/24858 are using wrapQtProgam and wrapPythonPrograms. In both
cases there is a way to extend the
Stackable wrappers are implemented in
https://github.com/NixOS/nixpkgs/pull/24858, but you will need to wait
for that package to land in master, and then get included in some
channel :-).
You can also create a trivial wrapper derivation:
|# file ~/.nixpkgs/config.nix { pkgs, ...}: {
Hi,
I want to override an existing package to use it locally. I would like to
just set an environment variable before the program is executed, but the
derivation is using `wrapProgram`, so there is already a wrapper for the
program. Is possible to override the derivation to add another