Files
haskell.nix/lib/make-source-pins.nix
Rodney Lorrimar 8512832c32 Fix evaluation on Hydra (#153)
* Fix eval on Hydra

* Bump nixpkgs to latest 19.03

* Change unit tests into a derivation

Prevents Hydra from complaining about them.

* Add unpacked source pins to Hydra jobset

So that they are cached.
2019-06-02 07:21:21 +10:00

12 lines
351 B
Nix

# Writes the store paths of a list of sources into a file.
# If this derivation is built by Hydra, then the sources will
# be kept and will be available to download from the binary cache.
{ lib, writeTextFile
, sources # A list of paths
}:
writeTextFile {
name = "haskell.nix-source-pins";
text = lib.concatMapStringsSep "\n" toString sources;
}