nixpkgs/pkgs/build-support
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
..
add-opengl-runpath
agda
alternatives
appimage
binary-cache
bintools-wrapper Merge pull request #239624 from Stunkymonkey/use-optionalString-then 2023-07-22 13:02:47 +02:00
build-bazel-package buildBazelPackage: add support for bazel run targets 2023-08-02 16:05:55 +08:00
build-fhsenv-bubblewrap
build-fhsenv-chroot
build-graalvm-native-image
build-setupcfg
buildenv
cc-wrapper Merge #243595: cc-wrapper: -fwrapv instead of -fno-strict-overflow in clang 2023-07-26 11:55:59 +02:00
coq
dart
deterministic-uname
dhall
docker
dotnet
emacs
expand-response-params
fake-nss
fetch9front lib: add fetchFrom9Front 2023-07-23 13:16:28 -05:00
fetchbitbucket
fetchbower
fetchbzr
fetchcvs
fetchdarcs fetchdarcs: clean up md5 references 2023-07-20 21:24:13 -07:00
fetchdocker
fetchfirefoxaddon fetchfirefoxaddon: fix passing md5 to fetchurl 2023-07-28 16:18:15 -04:00
fetchfossil
fetchgit Merge master into staging-next 2023-07-21 06:01:05 +00:00
fetchgitea
fetchgithub
fetchgitiles
fetchgitlab
fetchgitlocal
fetchgx
fetchhg fetchhg: clean up md5 references 2023-07-20 21:24:13 -07:00
fetchipfs
fetchmavenartifact
fetchmtn
fetchnextcloudapp
fetchpatch
fetchpijul build-support: Add fetchpijul function. 2023-07-17 18:44:06 +02:00
fetchpypi
fetchrepoorcz
fetchrepoproject fetchrepoproject: fix a bug that was there since bef6bef0d2 2023-08-06 12:17:09 +00:00
fetchs3
fetchsavannah
fetchsourcehut
fetchsvn fetchsvn: clean up md5 references 2023-07-20 21:24:07 -07:00
fetchsvnrevision
fetchsvnssh fetchsvnssh: clean up md5 references 2023-07-20 21:24:13 -07:00
fetchurl fetchurl: clean up md5 references 2023-07-20 21:23:04 -07:00
fetchzip
flutter
go treewide .goModules: revert renaming the derivation 2023-07-24 08:15:48 +02:00
icon-conv-tools
install-shell-files
java
kernel Merge pull request #239624 from Stunkymonkey/use-optionalString-then 2023-07-22 13:02:47 +02:00
libredirect libredirect: fix build with clang 16 2023-07-14 18:10:13 -06:00
make-darwin-bundle
make-desktopitem
make-hardcode-gsettings-patch
make-pkgconfigitem
make-startupitem
mkshell
mono-dll-fixer
nix-gitignore Merge pull request #239624 from Stunkymonkey/use-optionalString-then 2023-07-22 13:02:47 +02:00
node feat: implement redirect for fetch-yarn-deps 2023-07-26 15:13:37 +08:00
nuke-references
ocaml
oci-tools
pkg-config-wrapper
portable-service
prefer-remote-fetch
references-by-popularity
release treewide: use lib.optionalAttrs 2023-07-24 21:59:17 +02:00
remove-references-to
replace-secret
rust Merge #239191: treewide: gobject-introspection from buildInputs to nativeBuildInputs 2023-07-26 20:53:32 +02:00
setup-hooks stdenv: use improved strip.sh for aarch64-linux 2023-07-30 21:18:30 +02:00
singularity-tools
snap
src-only
substitute
substitute-files
templaterpm
testers testers.hasPkgConfigModules: allow checking multiple pkg-config mods 2023-08-08 19:16:48 +02:00
trivial-builders trivial-builders: add meta.mainProgram to writeShellScriptBin 2023-08-11 00:40:37 -05:00
vm Merge pull request #239624 from Stunkymonkey/use-optionalString-then 2023-07-22 13:02:47 +02:00
wrapper-common
writers writers: Set mainProgram 2023-08-01 12:21:06 +02:00
build-maven.nix
build-pecl.nix
closure-info.nix
make-impure-test.nix
plugins.nix
replace-dependency.nix
setup-systemd-units.nix
source-from-head-fun.nix