core/pkgs/build-support/source-from-head-fun.nix
2024-05-13 22:24:10 +01:00

18 lines
483 B
Nix

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