From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Gesthuizen Subject: emacs irony-mode Date: Sun, 12 Aug 2018 20:53:07 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------34D7FFE15E8E1729603B3A0B" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fovUJ-0003uf-GA for guix-devel@gnu.org; Sun, 12 Aug 2018 14:53:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fovUF-0002aw-Gm for guix-devel@gnu.org; Sun, 12 Aug 2018 14:53:15 -0400 Received: from sonic306-20.consmr.mail.ir2.yahoo.com ([77.238.176.206]:43820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fovUF-0002Zw-5Y for guix-devel@gnu.org; Sun, 12 Aug 2018 14:53:11 -0400 Received: from p5B221F7E.dip0.t-ipconnect.de (EHLO [192.168.178.27]) ([91.34.31.126]) by smtp403.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID f860bdd65a640378c74f29c80c9e385d for ; Sun, 12 Aug 2018 18:53:08 +0000 (UTC) Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org This is a multi-part message in MIME format. --------------34D7FFE15E8E1729603B3A0B Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, I am trying to package irony-mode for emacs and quickly noticed that I need more input on how packages like this should be seperated or handled. Maybe somebody wants to take my approach and integrate the package definition(s) into guix or provide some information towards how such packages should be integrated. You find the script with my package definition attached. Mentioning packages with similar problems would also be helpful. Best regards, Tim Gesthuizen --------------34D7FFE15E8E1729603B3A0B Content-Type: text/x-scheme; name="irony-mode.scm" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="irony-mode.scm" (define-module (irony-mode) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build utils) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system emacs) #:use-module (guix build-system cmake) #:use-module (gnu packages) #:use-module (gnu packages emacs) #:use-module (gnu packages llvm)) (define irony-mode-version "1.2.0") (define irony-mode-url (string-append "https://github.com/Sarcasm/irony-mode/archive/v" irony-mode-version ".tar.gz")) (define irony-mode-base (base32 "1f68zi0glkg2aly66s07rx3w0b0hdi1znxan02h6dbabaadylk99")) =20 (define-public emacs-irony-mode (package (name "emacs-irony-mode") (version irony-mode-version) (source (origin (method url-fetch) (uri irony-mode-url) (sha256 irony-mode-base) (modules '((guix build utils))) (snippet '(begin (for-each delete-file-recursively '("server/src" "server/docs" "server/cmake" "server/build-aux" "screenshots")))))) (build-system emacs-build-system) (arguments '()) (propagated-inputs `(("emacs-irony-mode-server" ,emacs-irony-mode-server))) (home-page "https://github.com/Sarcasm/irony-mode") (synopsis "Clang autocompletion and syntax checking integration for GN= U Emacs") (description "Guten Tag") (license license:gpl3))) (define-public emacs-irony-mode-server (package (name "emacs-irony-mode-server") (version irony-mode-version) (source (origin (method url-fetch) (uri irony-mode-url) (sha256 irony-mode-base))) (propagated-inputs `(("clang" ,clang))) (arguments `(#:phases (modify-phases %standard-phases (replace 'configure (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (invoke "cmake" "server" (string-append "-DCMAKE_INSTALL_PREFIX=3D" out)))))))) (build-system cmake-build-system) (home-page "https://github.com/Sarcasm/irony-mode") (synopsis "Clang autocompletion and syntax checking integration for GN= U Emacs") (description "*TODO*") (license license:gpl3))) --------------34D7FFE15E8E1729603B3A0B--