On Friday, January 03, 2014 04:19:26 PM Ludovic Courtès wrote:
> It is called ‘x11’ (to avoid ambiguity with other licenses originating
> from MIT) in the (guix licenses) module.  So you would write
> 
>    (define-module (gnu packages zsh)
>       ...
>        (license (x11-style "http://url-of/the/license";))
> 
> >     guix build: error: zsh: unknown package
> 
> That will be solved by the above.
> 
> HTH!

Thanks, that did help, but I got the following error:
        checking if tcsetpgrp() actually works... notty
        configure: error: no controlling tty
        Try running configure with --with-tcsetpgrp or --without-tcsetpgrp
I tried the first flag, but it "failed to match any pattern in form". I was 
copying the bash.scm, but I'm not sure if Zsh needs the readline and texinfo 
stuff. Maybe I should just attach my package definition as Nikita requested. 
It's attached.

By the way, the license also says some of the scripts are licensed with the 
GPL.
(define-module (gnu packages zsh)
  #:use-module (guix licenses)
  ;; #:use-module (gnu packages ncurses)
  ;; #:use-module (gnu packages readline)
  ;; #:use-module (gnu packages texinfo)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu))
	     

(define-public zsh
  (let* ((configure-flags
	  ``("--with-tcsetpgrp"))))
  (package
   (name "zsh")
   (version "5.0.2")
   (source (origin
	    (method url-fetch)
	    (uri (string-append "ftp://ftp.zsh.org/zsh/zsh.tar.bz2";))
	    (sha256
	     (base32 "1s2fvv0zfpi0qg9fzhiv8ac19pwbbjd0sbsbzmll3nqa8k4yfvz9"))))
   (build-system gnu-build-system)
   (inputs `(("readline" ,readline)
	     ("ncurses" ,ncurses)
	     ("texinfo" ,texinfo)))
   (synopsis "Z Shell")
   (description "Zsh is a UNIX command interpreter (shell) usable as an interactive login shell and as a shell script command processor. Of the standard shells, zsh most closely resembles ksh but includes many enhancements. Zsh has command line editing, builtin spelling correction, programmable command completion, shell functions (with autoloading), a history mechanism, and a host of other features.")
   (license (x11-style "http://sourceforge.net/p/zsh/code/ci/master/tree/LICENCE";))
   (home-page "http://www.zsh.org/";)))

Reply via email to