From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Jordan Subject: Re: Creating new package for Guix - newbie's question Date: Sun, 12 Jun 2016 17:24:37 -0400 Message-ID: <87y46af6cq.fsf@mailerver.i-did-not-set--mail-host-address--so-tickle-me> References: <5fa1df57607f64fe3ea0890f5ff75674@goritskov.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCCth-0007Hm-Dl for help-guix@gnu.org; Sun, 12 Jun 2016 17:26:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCCtb-0000dA-Uw for help-guix@gnu.org; Sun, 12 Jun 2016 17:26:20 -0400 Received: from forward2m.cmail.yandex.net ([5.255.216.20]:40255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCCta-0000cR-KE for help-guix@gnu.org; Sun, 12 Jun 2016 17:26:15 -0400 In-reply-to: <5fa1df57607f64fe3ea0890f5ff75674@goritskov.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Rodion Goritskov Cc: Help Guix Hi Rodion, Welcome to Guix! Here is the fast way; $ mkdir -p ${HOME}/tmp/packages/gnu/packages $ export GUIX_PACKAGE_PATH="${HOME}/tmp/packages" $ mv .scm ${HOME}/tmp/packages/gnu/packages $ guix build If you intend to contribute the package, keep reading. > OK, that is not really a problem - I tried to create this package > myself. So, I copied template "hello.scm" from documentation, modified > it according to compton's build process. See the following sections/chapters in the Guile Reference Manual; 5 Programming Interface (Page 41) https://www.gnu.org/software/guix/manual/guix.html#Programming-Interface 6.1 Invoking guix build (Page 75) https://www.gnu.org/software/guix/manual/guix.html#Invoking-guix-build 8 Contributing (Page 170)) https://www.gnu.org/software/guix/manual/guix.html#Contributing > Question is - how I can test created package build process? Here is what I do atm for developing packages. $ guix environment guix --ad-hoc help2man git strace $ eval `guix environment guix --ad-hoc --search-paths help2man git strace` $ unset GUIX_PACKAGE_PATH $ export GUIX_BUILD_OPTIONS="--keep-failed --verbosity=3" $ export BUILD_LOG=${HOME}/tmp/logs/pre-guix-build.log $ mkdir -p $(dirname ${BUILD_LOG}) Inital setup $ git clone --recurse git://git.savannah.gnu.org/guix.git Update $ git pull --recurse-submodules Build $ ./bootstrap $ ./configure --localstate=/var $ make $ make check Runs in the foreground optional unless editing damon code $ sudo ./pre-inst-env guix-daemon --build-users-group=guixbuild Edit/add code under gnu/packages directory. $ export GUIX_BUILD_OPTIONS="--keep-failed --verbosity=3" $ ./pre-inst-env guix build hello &>/dev/stdout &>${BUILD_LOG} $ ./pre-inst-env guix lint hello -- Matthew Jordan Sent with my mu4e