nixpkgs/pkgs/build-support
Rickard Nilsson 8685278f11 Add nix-run and myEnvRun
This adds nix-run, which is a thin wrapper around nix-build.
nix-run calls nix-build, and then executes the resulting build.
If no executable artifact is built, nix-runs outputs an error
message.

myEnvRun calls myEnvFun and builds a script that directly runs
the load-env-* script.

Together, nix-run and myEnvRun allows you to set up an environment
that can be loaded in this way:

  envs.nix:
    {
      gcc = myEnvRun {
        name = "gcc";
        buildInputs = [ gcc ];
      };
    }

  $ nix-run -A gcc envs.nix

You end up directly in your environment without having to do
nix-env -i. You will always have a fresh environment and you
don't have to pollute you profile with a lot of env packages.
2013-12-01 09:36:55 +01:00
..
build-fhs-chrootenv My attempt to get Steam working in NixOS. It uses a function called buildFHSChrootEnv {} that composed chroot environments. In such a chroot environment, I could run Steam without much problem 2013-09-13 23:58:59 +02:00
buildenv buildEnv: don't warn about collisions in propagated packages 2012-07-25 23:18:39 -04:00
builder-defs Updating TeXLive to 2013 using updated Debian snapshots. 2013-10-14 10:58:54 +04:00
cabal Back-port Haskell-related improvements from stdenv-updates. 2013-10-27 10:09:36 +01:00
clang-wrapper clang-wrapper: Optionally use libc++ instead of libstdc++. 2013-11-16 13:53:48 +01:00
dotnetenv * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless 2012-01-18 20:16:00 +00:00
fetchbzr - fetchbzr and nix-prefetch-bzr now only export, instead of cloning 2013-03-31 19:16:18 -07:00
fetchcvs * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless 2012-01-18 20:16:00 +00:00
fetchdarcs Remove deprecated option --ephemeral from fetchdarcs 2012-10-22 15:02:33 +02:00
fetchfile Fixed error in build-support/fetchfile 2011-08-09 12:28:49 +00:00
fetchgit Fix nix-prefetch-git 2013-11-24 14:03:34 +01:00
fetchgitrevision Remove semicolon causing evaluation error. 2011-01-02 23:52:39 +00:00
fetchhg fetchhg: allow untrusted certs (merge #540) 2013-05-20 21:24:25 +02:00
fetchmtn Fix a few typos 2013-08-11 10:55:53 +00:00
fetchsvn fetchsvn: handle redirect(s) 2013-11-01 22:54:13 +01:00
fetchsvnrevision Live builds support: initially for git and svn. taglib_live is packaged as an example. 2011-01-02 23:23:59 +00:00
fetchsvnssh undo 2008-07-06 15:46:10 +00:00
fetchurl Remove currently broken Debian mirror 2013-10-23 11:31:29 +02:00
gcc-cross-wrapper Merge branch 'stdenv-updates' into pi-stdenv-updates 2012-12-28 20:14:01 +00:00
gcc-wrapper gcc-wrapper: avoiding one glibc rebuild, for gcc.crossDrv 2013-04-10 18:26:42 +02:00
kdewrapper Some kde wrapper improvements. 2013-05-14 18:51:24 +02:00
kernel makeModulesClosure: Use kmod instead of module-init-tools 2013-08-07 22:46:11 +02:00
make-desktopitem * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless 2012-01-18 20:16:00 +00:00
make-startupitem Added an optional parameter to "make-startupitem" to provide a prefix to the ".desktop" file. 2012-02-29 12:50:17 +00:00
make-symlinks * "." -> "source". 2005-12-05 14:11:09 +00:00
mono-dll-fixer * Remove references to substitute.sh. 2006-12-27 18:17:53 +00:00
my-env-run Add nix-run and myEnvRun 2013-12-01 09:36:55 +01:00
native-darwin-cctools-wrapper Darwin: Add mig', lipo', etc. to `stdenvNative'. 2012-04-23 15:47:31 +00:00
nuke-references * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless 2012-01-18 20:16:00 +00:00
release Build aggregates locally 2013-08-21 14:50:34 +02:00
setup-hooks Rename buildNativeInputs -> nativeBuildInputs 2012-12-28 19:20:09 +01:00
src-only A helper to get the source some package is built from. 2008-10-01 15:57:22 +00:00
substitute * Set preferLocalBuild on a few more trivial builders. 2012-04-26 15:17:43 +00:00
upstream-updater Updating SlimerJS to Git version for compatibility with fresh xulrunner 2013-10-31 02:59:45 +04:00
vm Build RPMs for i686 rather than i386 2013-10-23 12:55:07 +02:00
vsenv * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless 2012-01-18 20:16:00 +00:00
replace-dependency.nix replace-dependency: Eelco has ruled, lowerCamelCase > dash-case :( 2013-01-13 11:15:01 -05:00
source-from-head-fun.nix Remove getConfig helper function 2012-09-19 13:56:56 -04:00
trivial-builders.nix Rename buildNativeInputs -> nativeBuildInputs 2012-12-28 19:20:09 +01:00