summary refs log blame commit diff
path: root/pkgs/build-support/source-from-head-fun.nix
blob: 3281cec5444073705831681b0ff0fe9c9336c793 (plain) (tree)
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 http://github.com/MarcWeber/nix-repository-manager/raw/master/README

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