Skip to content
Discussion options

You must be logged in to vote
inputs.wrappers.lib.wrapPackage {
  inherit pkgs;
  package = pkgs.cowsay;
  exePath = "bin/foobar";
  binName = "foobar";
}

if cowsay had a bin/foobar and you wanted to wrap that and NOT bin/cowsay, which it appears is what your example is doing, you would just do this.

Is that what the goal is here?

i.e.

inputs.wrappers.lib.wrapPackage {
  inherit pkgs;
  package = pkgs.hydrus;
  # you should pick whichever one you would run via `nix run` for the main one.
  exePath = "bin/hydrus-client";
  binName = "hydrus-client";
  # wrap the package
  
  # will repeat whatever you set for the main one but with different `exePath` and `binName` unless you change some values per item.
  wrapperVariants.

Replies: 9 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by BirdeeHub
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@musjj
Comment options

@BirdeeHub
Comment options

@BirdeeHub
Comment options

@BirdeeHub
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #298 on February 15, 2026 22:28.