3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/build-support/source-from-head-fun.nix
Marc Weber 5319704f80 removing old bleeding edge cruft replacing it by a niftier version using
source regions which are substituded by the tool nix-repository-manager.
See http://github.com/MarcWeber/nix-repository-manager/raw/master/README.

sourceByName is called sourceFromHead now.

updates: MPlayerTrunk, haxe, neko, netsurf, cinelerra, ctags
cinelerra does no longer build due to Xorg update

svn path=/nixpkgs/trunk/; revision=18894
2009-12-11 13:58:23 +00:00

17 lines
499 B
Nix

/*
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