NixOS / bundlers

MIT License
93 stars 12 forks source link

Use nixpkgs.lib.getExe #14

Open nagy opened 1 year ago

nagy commented 1 year ago

Currently, bundling packages with a name prefix, e.g. luaPackages.fennel fails upon execution with:

$ ./lua5.2-fennel
execvp(/nix/store/hfgrhz6ks6s73bxbg4yg7wnrhyhn6pfr-lua5.2-fennel-1.3.0-1/bin/lua5.2-fennel): No such file or directory

In nixpkgs, there exists logic to handle cases like this with lib.getExe, which we are using now.

For this, I also needed to update nixpkgs in the flake lock.

Artturin commented 11 months ago

fix: share nixpkgs among dependency flakes

May break matthewbauer/bundler without https://github.com/matthewbauer/nix-bundle/pull/98