gnu: fish: Use /etc as sysconfdir.

* gnu/packages/fish.scm (fish) [arguments]: Add #:configure-flags.
  [origin]: Add snippet.
This commit is contained in:
宋文武 2014-12-06 14:53:00 +08:00
parent 6036453fff
commit fa9d665385

View file

@ -35,14 +35,20 @@ (define-public fish
version "/fish-" version ".tar.gz")) version "/fish-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"096rhi911s3j618cvp8fj9pb4jniy3y6415jvjg8bhszsp1x7r5p")))) "096rhi911s3j618cvp8fj9pb4jniy3y6415jvjg8bhszsp1x7r5p"))
(modules '((guix build utils)))
;; Don't try to install /etc/fish/config.fish.
(snippet
'(substitute* "Makefile.in"
((".*INSTALL.*sysconfdir.*fish.*") "")))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (native-inputs
`(("doxygen" ,doxygen))) `(("doxygen" ,doxygen)))
(inputs (inputs
`(("ncurses" ,ncurses))) `(("ncurses" ,ncurses)))
(arguments (arguments
'(#:tests? #f)) ; no check target '(#:tests? #f ; no check target
#:configure-flags '("--sysconfdir=/etc")))
(synopsis "The friendly interactive shell") (synopsis "The friendly interactive shell")
(description (description
"Fish (friendly interactive shell) is a shell focused on interactive use, "Fish (friendly interactive shell) is a shell focused on interactive use,