1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00

Merge pull request #64 from DamienCassou/stop-using-anti-patterns

Stop using anti patterns
This commit is contained in:
Domen Kožar 2020-06-29 08:32:53 +02:00 committed by GitHub
commit 4d89d507ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -35,8 +35,8 @@ Examples
- ``NIX_PATH=nixpkgs=http://nixos.org/channels/nixos-20.03/nixexprs.tar.xz nix-build ...``
- Using just Nix::
with import (fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-20.03.tar.gz) {};
stdenv.mkDerivation { … }
let
pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-20.03.tar.gz") {};
in pkgs.stdenv.mkDerivation { … }
- To make ad-hoc environment available on NixOS: ``nix.nixPath = [ ("nixpkgs=" + toString pkgs.path) ];``

View file

@ -32,7 +32,7 @@ The simplest way to do this is to fetch the required nixpkgs version as a tarbal
.. code:: nix
{ pkgs ? import (fetchTarball https://github.com/NixOS/nixpkgs/archive/3590f02e7d5760e52072c1a729ee2250b5560746.tar.gz) {};
{ pkgs ? import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/3590f02e7d5760e52072c1a729ee2250b5560746.tar.gz") {};
}:
...