nixpkgs/pkgs
Charlie Moog 0b4c5d23cd
trivial-builders: add meta.mainProgram to writeShellScriptBin
Derivations built with `writeShellScriptBin`
should always be runnable with `nix run`. At present,
the derivation is missing both `meta.mainProgram`
and `pname`– this means that `nix run` falls back
to inferring the bin path from `name`. This is
unreliable and depends on faulty heuristics.

For context, reference the following snippet from
`nix run --help`:

    If installable evaluates to a derivation, it will try to execute the
    program <out>/bin/<name>, where out is the primary output store path
    of the derivation, and name is the first of the following that exists:

      · The meta.mainProgram attribute of the derivation.
      · The pname attribute of the derivation.
      · The name part of the value of the name attribute of the derivation.
2023-08-11 00:40:37 -05:00
..
applications Merge pull request #248422 from lunik1/mpvScripts.mpv-playlistmanager_unstable-2022-08-26->unstable-2022-08-29 2023-08-10 22:45:27 -06:00
build-support trivial-builders: add meta.mainProgram to writeShellScriptBin 2023-08-11 00:40:37 -05:00
common-updater
data
desktops
development Merge pull request #246909 from tjni/rdflib 2023-08-11 14:00:41 +09:00
games
misc
os-specific
pkgs-lib
servers pict-rs: 0.4.0 -> 0.4.2 2023-08-11 10:51:21 +08:00
shells
stdenv
test
tools Merge pull request #248452 from aaronjheng/csvdiff 2023-08-11 05:38:30 +02:00
top-level Merge pull request #241154 from bachp/cryptomator-1.9.1 2023-08-11 05:34:33 +02:00