diff options
Diffstat (limited to 'pkgs/build-support/source-from-head-fun.nix')
-rw-r--r-- | pkgs/build-support/source-from-head-fun.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/build-support/source-from-head-fun.nix b/pkgs/build-support/source-from-head-fun.nix new file mode 100644 index 000000000000..3281cec54440 --- /dev/null +++ b/pkgs/build-support/source-from-head-fun.nix @@ -0,0 +1,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 |