diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-09-19 13:56:56 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-09-19 13:56:56 -0400 |
commit | e6077fbc46561fbe85c40a43b2b0e86e939f984f (patch) | |
tree | 038bfd2b546561425c96deccd7d856f96297ea02 /pkgs/build-support/source-from-head-fun.nix | |
parent | 0062d0f11d163ca720134f8d5a18bc1696eab1ae (diff) |
Remove getConfig helper function
An expression like ‘getConfig [ "cabal" "libraryProfiling" ] false’ can be written more concisely as ‘config.cabal.libraryProfiling or false’.
Diffstat (limited to 'pkgs/build-support/source-from-head-fun.nix')
-rw-r--r-- | pkgs/build-support/source-from-head-fun.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/build-support/source-from-head-fun.nix b/pkgs/build-support/source-from-head-fun.nix index 3281cec544407..c6d6cfcc95b6d 100644 --- a/pkgs/build-support/source-from-head-fun.nix +++ b/pkgs/build-support/source-from-head-fun.nix @@ -9,8 +9,8 @@ The documentation is availible at http://github.com/MarcWeber/nix-repository-manager/raw/master/README */ -{ getConfig }: +{ config }: localTarName: publishedSrcSnapshot: - if getConfig ["sourceFromHead" "useLocalRepos"] false then - "${getConfig ["sourceFromHead" "managedRepoDir"] "/set/sourceFromHead.managedRepoDir/please"}/dist/${localTarName}" + if config.sourceFromHead.useLocalRepos or false then + "${config.sourceFromHead.managedRepoDir or "/set/sourceFromHead.managedRepoDir/please"}/dist/${localTarName}" else publishedSrcSnapshot |