Merge pull request #47 from hercules-ci/readme-alternative-fetch

Add alternative fetching method to README
This commit is contained in:
Robert Hensing 2020-07-17 08:57:12 +02:00 committed by GitHub
commit c4662e6624
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,14 @@ in
<your nix expression> <your nix expression>
``` ```
Or using only `nixpkgs/lib` and only evaluation-time fetching:
```nix
import (builtins.fetchTarball "https://github.com/hercules-ci/gitignore.nix/archive/000000000000000000000000000000000000000000000000000".tar.gz") {
lib = import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/000000000000000000000000000000000000000000000000000".tar.gz" + "/lib");
}
```
# Usage # Usage
```nix ```nix