on e94de40 help sign in
haskell.nix/lib/make-source-pins.nix
11 lines 351 B history raw
1# Writes the store paths of a list of sources into a file.
2# If this derivation is built by Hydra, then the sources will
3# be kept and will be available to download from the binary cache.
4{ lib, writeTextFile
5, sources # A list of paths
6}:
8writeTextFile {
9 name = "haskell.nix-source-pins";
10 text = lib.concatMapStringsSep "\n" toString sources;