Skip to content

Instantly share code, notes, and snippets.

@pveierland
Created November 13, 2024 06:10
Show Gist options
  • Select an option

  • Save pveierland/f520d73d9358dbb1ee8807fc85d6414f to your computer and use it in GitHub Desktop.

Select an option

Save pveierland/f520d73d9358dbb1ee8807fc85d6414f to your computer and use it in GitHub Desktop.
Nix executable symlink
executableSymlink = symlinkName: targetPkg: (
pkgs.runCommand symlinkName { } "mkdir -p $out/bin; ln -s ${lib.getExe targetPkg} $out/bin/${symlinkName}"
);
(executableSymlink "ruff-nix" ${pkgs.ruff})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment