nix-super/src/nix
Eelco Dolstra 26cf0c674f nix run: Use packages/legacyPackages as fallback if there is no app definition
'nix run' will try to run $out/bin/<name>, where <name> is the
derivation name (excluding the version). This often works well:

  $ nix run nixpkgs#hello
  Hello, world!

  $ nix run nix -- --version
  nix (Nix) 2.4pre20200626_adf2fbb

  $ nix run patchelf -- --version
  patchelf 0.11.20200623.e61654b

  $ nix run nixpkgs#firefox -- --version
  Mozilla Firefox 77.0.1

  $ nix run nixpkgs#gimp -- --version
  GNU Image Manipulation Program version 2.10.14

though not always:

  $ nix run nixpkgs#git
  error: unable to execute '/nix/store/kp7wp760l4gryq9s36x481b2x4rfklcy-git-2.25.4/bin/git-minimal': No such file or directory
2020-06-29 19:08:50 +02:00
..
add-to-store.cc More designated initializers 2020-06-19 17:42:56 +00:00
app.cc nix run: Use packages/legacyPackages as fallback if there is no app definition 2020-06-29 19:08:50 +02:00
build.cc Add completion for paths 2020-05-10 21:35:07 +02:00
cat.cc Merge remote-tracking branch 'origin/master' into flakes 2020-06-17 10:26:52 +02:00
command.cc Merge remote-tracking branch 'origin/master' into flakes 2020-06-26 08:46:46 +02:00
command.hh Add completion for --update-input 2020-06-08 16:20:00 +02:00
copy.cc Merge remote-tracking branch 'origin/master' into flakes 2020-06-17 10:26:52 +02:00
develop.cc Merge remote-tracking branch 'origin/master' into flakes 2020-06-26 08:46:46 +02:00
doctor.cc nix doctor: Consistency 2020-05-05 15:27:47 +02:00
dump-path.cc nix --help: Group commands 2020-05-05 15:18:23 +02:00
edit.cc nix --help: Group commands 2020-05-05 15:18:23 +02:00
eval.cc nix eval: Add --apply flag for post-processing the result 2020-06-17 18:12:24 +02:00
flake.cc nix run: Use packages/legacyPackages as fallback if there is no app definition 2020-06-29 19:08:50 +02:00
get-env.sh nix dev-shell: Support structured attrs 2020-04-30 14:47:47 +02:00
hash.cc Merge remote-tracking branch 'origin/master' into flakes 2020-06-26 08:46:46 +02:00
installables.cc Factor out EvalCache::forceDerivation() 2020-06-29 16:39:41 +02:00
installables.hh nix run: Use packages/legacyPackages as fallback if there is no app definition 2020-06-29 19:08:50 +02:00
legacy.cc Start of new Nix command-line interface 2016-02-09 21:28:29 +01:00
legacy.hh Fix Darwin build 2016-03-15 12:11:27 +01:00
local.mk StorePath: Rewrite in C++ 2020-06-16 14:28:41 +02:00
log.cc nix --help: Group commands 2020-05-05 15:18:23 +02:00
ls.cc Merge remote-tracking branch 'origin/master' into flakes 2020-06-17 10:26:52 +02:00
main.cc Fix bash completion 2020-06-29 14:37:22 +02:00
make-content-addressable.cc More designated initializers 2020-06-19 17:42:56 +00:00
optimise-store.cc nix --help: Group commands 2020-05-05 15:18:23 +02:00
path-info.cc Merge branch 'validPathInfo-temp' into validPathInfo-ca-proper-datatype 2020-06-18 23:01:58 +00:00
ping-store.cc nix --help: Group commands 2020-05-05 15:18:23 +02:00
profile.cc Merge remote-tracking branch 'origin/master' into flakes 2020-06-26 08:46:46 +02:00
registry.cc Remove TreeInfo 2020-05-30 00:44:11 +02:00
repl.cc Merge remote-tracking branch 'origin/master' into flakes 2020-06-26 08:46:46 +02:00
run.cc nix run: Use packages/legacyPackages as fallback if there is no app definition 2020-06-29 19:08:50 +02:00
search.cc nix flake init: Add a '--template' flag 2020-06-04 20:22:25 +02:00
show-config.cc nix --help: Group commands 2020-05-05 15:18:23 +02:00
show-derivation.cc Remove some Base:: that crept in 2020-06-19 00:24:47 +00:00
sigs.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
upgrade-nix.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
verify.cc Merge branch 'validPathInfo-temp' into validPathInfo-ca-proper-datatype 2020-06-18 23:01:58 +00:00
why-depends.cc Merge remote-tracking branch 'origin/master' into flakes 2020-06-17 10:26:52 +02:00