Provide default value for src in ./release.nix (#42)

This simplifies local testing
This commit is contained in:
Gabriel Gonzalez 2019-01-02 00:03:04 -06:00 committed by GitHub
parent 4a904b4688
commit ee0c74c79f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 9 deletions

View File

@ -297,12 +297,9 @@ project][hydra-project].
You can run the tests locally with the following somewhat magic command:
```bash
nix-build --no-link -E 'with import <nixpkgs> {}; callPackage ./release.nix { src.rev = ""; }'
nix-build --no-link -E 'with import <nixpkgs> {}; callPackage ./release.nix { }'
```
It is so because `release.nix` expects Hydra to provide the git revision in `src.rev`,
but locally we don't have/want that, so we just call the function with an empty string.
### Changing the README
We build `README.md` from `docs/README.md.dhall` and check it into source control.

View File

@ -130,12 +130,9 @@ project][hydra-project].
You can run the tests locally with the following somewhat magic command:
```bash
nix-build --no-link -E 'with import <nixpkgs> {}; callPackage ./release.nix { src.rev = ""; }'
nix-build --no-link -E 'with import <nixpkgs> {}; callPackage ./release.nix { }'
```
It is so because `release.nix` expects Hydra to provide the git revision in `src.rev`,
but locally we don't have/want that, so we just call the function with an empty string.
### Changing the README
We build `README.md` from `docs/README.md.dhall` and check it into source control.

View File

@ -1,4 +1,4 @@
{ src, ... }:
{ src ? { rev = ""; }, ... }:
let
pkgs = import ./nixpkgs.nix;