guix-env.scm 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ;; guix package --install-from-file=guix-env.scm
  2. ;; or
  3. ;; guix build -f guix-env.scm
  4. ;;; modules
  5. (use-modules
  6. (ice-9 popen)
  7. (ice-9 match)
  8. (ice-9 rdelim)
  9. (guix packages)
  10. (guix build-system gnu)
  11. (guix gexp)
  12. ((guix build utils) #:select (with-directory-excursion))
  13. (guix git-download)
  14. (guix licenses)
  15. (guix utils)
  16. (gnu packages)
  17. (gnu packages python)
  18. (gnu packages pkg-config)
  19. (gnu packages autotools)
  20. (gnu packages gettext)
  21. (gnu packages base)
  22. ((guix licenses) #:prefix license:))
  23. ;;; local source dir
  24. (define %source-dir (dirname (current-filename)))
  25. ;; package
  26. (define ecantorix-sg
  27. (package
  28. (name "ecantorix-sg")
  29. (version "git09022017")
  30. (source
  31. (local-file %source-dir
  32. #:recursive? #t
  33. #:select? (git-predicate %source-dir)))
  34. (build-system gnu-build-system)
  35. (arguments '(#:configure-flags '("--enable-silent-rules")))
  36. (inputs `(
  37. ("python-3.5" ,python-3.5)
  38. )) ;; end of inputs
  39. (native-inputs
  40. `(("pkg-config" ,pkg-config)
  41. ("autoconf" ,autoconf)
  42. ("automake" ,automake)
  43. ("gnu-gettext" ,gnu-gettext)
  44. ("libtool" ,libtool)
  45. ("which" ,which)
  46. ))
  47. ;; call autogen.sh before ./configure
  48. (arguments '(
  49. #:parallel-build? #f
  50. #:tests? #f
  51. #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
  52. (string-append "DATADIR="
  53. (assoc-ref %outputs "out")
  54. "/share/ecantorix-sg-data")
  55. (string-append "LDFLAGS=-Wl,-rpath="
  56. (assoc-ref %outputs "out")
  57. "/lib")
  58. )
  59. #:phases (modify-phases %standard-phases (add-after 'unpack 'bootstrap (lambda _ (zero? (system* "sh" "autogen.sh"))))) ; call autogen.sh before ./configure
  60. )) ; end of arguments block
  61. (synopsis "Clone of the Yamaha PLG100-SG singing formant synthesizer")
  62. (description "ECantorix SG is fork of espeak-ng that supports singing in 99 languages including Japanese, English and Swedish.")
  63. (home-page "https://notabug.org/isengaara/ecantorix-sinsy-ng")
  64. (license gpl3+)))
  65. ecantorix-sg