mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
e6077fbc46
An expression like ‘getConfig [ "cabal" "libraryProfiling" ] false’ can be written more concisely as ‘config.cabal.libraryProfiling or false’.
17 lines
484 B
Nix
17 lines
484 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
|
|
|
|
*/
|
|
{ config }:
|
|
localTarName: publishedSrcSnapshot:
|
|
if config.sourceFromHead.useLocalRepos or false then
|
|
"${config.sourceFromHead.managedRepoDir or "/set/sourceFromHead.managedRepoDir/please"}/dist/${localTarName}"
|
|
else publishedSrcSnapshot
|