profiles: Generalize "hooks" for 'profile-derivation'.
authorLudovic Courtès <ludo@gnu.org>
Wed, 15 Apr 2015 20:44:51 +0000 (22:44 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 15 Apr 2015 20:44:51 +0000 (22:44 +0200)
commitaa46a028c4ff46e3f2e6866921866d2ed6373ba3
treee2de8788bc0a7e9a4b0b2fb7983769650ab160c5
parente46d517f6d0be939cca74ee9fdd181db04cbe1a1
profiles: Generalize "hooks" for 'profile-derivation'.

* guix/profiles.scm (info-dir-file): Remove (null? (manifest-entries
  manifest)) test.
  (ca-certificate-bundle): Likewise.
  (ghc-package-cache-file): Turn 'if' into 'and', and remove second
  arm.
  (%default-profile-hooks): New variable.
  (profile-derivation): Remove #:info-dir?, #:ghc-package-cache?, and
  #:ca-certificate-bundle?.  Add #:hooks.  Iterate over HOOKS.  Adjust
  'inputs' accordingly.
* guix/scripts/package.scm (guix-package): Adjust 'profile-derivation'
  call accordingly.
* tests/packages.scm ("--search-paths with pattern"): Likewise.
* tests/profiles.scm ("profile-derivation",
  "profile-derivation, inputs"): Likewise.
guix/profiles.scm
guix/scripts/package.scm
tests/packages.scm
tests/profiles.scm