1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
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
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
coq
dart
deterministic-uname
dhall
docker
dotnet
emacs
expand-response-params
fake-nss
fetch9front
fetchbitbucket
fetchbower
fetchbzr
fetchcvs
fetchdarcs
fetchdocker
fetchfirefoxaddon fetchfirefoxaddon: fix passing md5 to fetchurl 2023-07-28 16:18:15 -04:00
fetchfossil
fetchgit
fetchgitea
fetchgithub
fetchgitiles
fetchgitlab
fetchgitlocal
fetchgx
fetchhg
fetchipfs
fetchmavenartifact
fetchmtn
fetchnextcloudapp
fetchpatch
fetchpijul
fetchpypi
fetchrepoorcz
fetchrepoproject fetchrepoproject: fix a bug that was there since bef6bef0d2 2023-08-06 12:17:09 +00:00
fetchs3
fetchsavannah
fetchsourcehut
fetchsvn
fetchsvnrevision
fetchsvnssh
fetchurl
fetchzip
flutter
go
icon-conv-tools
install-shell-files
java
kernel
libredirect
make-darwin-bundle
make-desktopitem
make-hardcode-gsettings-patch
make-pkgconfigitem
make-startupitem
mkshell
mono-dll-fixer
nix-gitignore
node
nuke-references
ocaml
oci-tools
pkg-config-wrapper
portable-service
prefer-remote-fetch
references-by-popularity
release
remove-references-to
replace-secret
rust
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
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