about summary refs log tree commit diff
path: root/pkgs/build-support/source-from-head-fun.nix
blob: 938df1efd18a054f442ec632c88e7cbc55387a07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
   purpose: mantain bleeding edge head sources.

   you run
   app --update
   app --publish
   to create source snapshots

   The documentation is availible at https://github.com/MarcWeber/nix-repository-manager/raw/master/README

*/
{ config }:
  localTarName: publishedSrcSnapshot:
  if config.sourceFromHead.useLocalRepos or false then
    "${config.sourceFromHead.managedRepoDir or "/set/sourceFromHead.managedRepoDir/please"}/dist/${localTarName}"
  else publishedSrcSnapshot