1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

devShellTools: init (empty)

This commit is contained in:
Robert Hensing 2024-06-29 16:25:25 +02:00
parent ec35143a57
commit 091d8370a2
7 changed files with 41 additions and 0 deletions

View file

@ -20,6 +20,7 @@ There is no uniform interface for build helpers.
build-helpers/fetchers.chapter.md
build-helpers/trivial-build-helpers.chapter.md
build-helpers/testers.chapter.md
build-helpers/dev-shell-tools.chapter.md
build-helpers/special.md
build-helpers/images.md
hooks/index.md

View file

@ -0,0 +1,14 @@
# Development Shell helpers {#chap-devShellTools}
The `nix-shell` command has popularized the concept of transient shell environments for development or testing purposes.
<!--
We should try to document the product, not its development process in the Nixpkgs reference manual,
but *something* needs to be said to provide context for this library.
This is the most future proof sentence I could come up with while Nix itself does yet make use of this.
Relevant is the current status of the devShell attribute "project": https://github.com/NixOS/nix/issues/7501
-->
However, `nix-shell` is not the only way to create such environments, and even `nix-shell` itself can indirectly benefit from this library.
This library provides a set of functions that help create such environments.
<!-- ## `devShellTools.<function>` {#sec-devShellTools-<function>} -->

View file

@ -0,0 +1,13 @@
# `devShellTools`
This directory implements the `pkgs.devShellTools` library.
# Contributing to `devShellTools`
- Documentation should be contributed to the Nixpkgs manual, not here.
- Tests are available in the `tests` directory.
You may run them with `nix-build -A tests.devShellTools`.
- See [../../README.md](../../README.md) for more information on contributing to Nixpkgs.

View file

@ -0,0 +1,4 @@
{ }:
{
}

View file

@ -0,0 +1,5 @@
{ ... }:
{
}

View file

@ -83,6 +83,8 @@ with pkgs;
inherit gccTests;
};
devShellTools = callPackage ../build-support/dev-shell-tools/tests { };
stdenv-inputs = callPackage ./stdenv-inputs { };
stdenv = callPackage ./stdenv { };

View file

@ -837,6 +837,8 @@ with pkgs;
grsync = callPackage ../applications/misc/grsync { };
devShellTools = callPackage ../build-support/dev-shell-tools { };
dockerTools = callPackage ../build-support/docker {
writePython3 = buildPackages.writers.writePython3;
} // { __attrsFailEvaluation = true; };