unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add ghc-language-c.
@ 2017-01-03 23:23 Danny Milosavljevic
  2017-01-04 10:29 ` Ricardo Wurmus
  0 siblings, 1 reply; 2+ messages in thread
From: Danny Milosavljevic @ 2017-01-03 23:23 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/haskell.scm (ghc-language-c): New variable.
---
 gnu/packages/haskell.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 8e5927a00..ef6845056 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -8129,4 +8129,31 @@ for general types.")
 dependency.")
     (license license:bsd-3)))
 
+(define-public ghc-language-c
+  (package
+   (name "ghc-language-c")
+   (version "0.5.0")
+   (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+              "https://hackage.haskell.org/package/language-c/language-c-"
+              version
+              ".tar.gz"))
+       (sha256
+         (base32
+           "08i2bl7jmmymn2sldzlbz6ig7lx3wfwhlpadzibs3fx72z08pmc6"))))
+   (build-system haskell-build-system)
+   (inputs `(("ghc-syb" ,ghc-syb)))
+   (native-inputs
+     `(("ghc-happy" ,ghc-happy)
+       ("ghc-alex" ,ghc-alex)))
+   (home-page "http://visq.github.io/language-c/")
+   (synopsis "Analysis and generation of C code")
+   (description
+     "Language C is a haskell library for the analysis and generation of C code.
+It features a complete, well tested parser and pretty printer for all of C99
+and a large set of GNU extensions.")
+   (license license:bsd-3)))
+
 ;;; haskell.scm ends here

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gnu: Add ghc-language-c.
  2017-01-03 23:23 [PATCH] gnu: Add ghc-language-c Danny Milosavljevic
@ 2017-01-04 10:29 ` Ricardo Wurmus
  0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2017-01-04 10:29 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel


Danny Milosavljevic <dannym@scratchpost.org> writes:

> * gnu/packages/haskell.scm (ghc-language-c): New variable.
> ---
>  gnu/packages/haskell.scm | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)

Thanks for the patch!  I pushed it to master as 2d2388e24 with the
following minor changes:

* fixed the indentation
* broke up and realigned the URL string
* changed “haskell” to “Haskell” and “well tested” to “well-tested”

Thanks!

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
http://elephly.net

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-04 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-03 23:23 [PATCH] gnu: Add ghc-language-c Danny Milosavljevic
2017-01-04 10:29 ` Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).