Content-Security-Policy: default-src 'none'
Content-Type: text/plain; charset=UTF-8
Content-Length: 2437
Content-Disposition: inline; filename="jrnl.scm"
Last-Modified: Wed, 29 Jan 2025 21:44:01 GMT
Expires: Sat, 27 Jan 2035 21:44:01 GMT
ETag: "85d3863e05ce31a44b1f963a9ddf3ce0b78cb8e2"

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Eric Bavier <address@hidden>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages jrnl)
  #:use-module (guix packages)
  #:use-module (guix licenses)
  #:use-module (guix git-download)
  #:use-module (guix build-system python)
  #:use-module (gnu packages check)
  #:use-module (gnu packages python)
  #:use-module (gnu packages python-crypto)
  #:use-module (gnu packages python-xyz)
  #:use-module (gnu packages time))

(define-public jrnl
  (package
    (name "jrnl")
    (version "1.9.7")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/maebert/jrnl")
             (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1bjjyfc3fnsy0h299s3jj42wnigj43xdyp5ppi1cvkqbwl369935"))))
    (build-system python-build-system)
    (native-inputs
     `(("behave" ,behave)))
    (inputs
     `(("python" ,python)
       ("python-keyring" ,python-keyring)
       ("python-pycrypto" ,python-pycrypto)
       ("python-pytz" ,python-pytz)
       ("<pre>
# GNU Guix --- Functional package management for GNU
# Copyright © 2023 Antoine R. Dumont &lt;antoine.romain.dumont@gmail.com&gt;
# Copyright © 2023 Ludovic Courtès &lt;ludo@gnu.org&gt;
#
# This file is part of GNU Guix.
#
# GNU Guix is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# GNU Guix is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Guix.  If not, see &lt;http://www.gnu.org/licenses/&gt;.

#
# Test the &apos;guix locate&apos; command-line utility.
#

set -x

RUN_EXPENSIVE_TESTS=&quot;${RUN_EXPENSIVE_TESTS:-false}&quot;

tmpdir=&quot;guix-index-$$&quot;
# In the following tests, we use two different databases, one for each
# indexation method.
tmpdb_manifests=&quot;$tmpdir/manifests/db.sqlite&quot;
tmpdb_store=&quot;$tmpdir/store/db.sqlite&quot;
trap &apos;rm -rf &quot;$tmpdir&quot; &quot;$tmpdb_store&quot; &quot;$tmpdb_manifests&quot;&apos; EXIT

guix locate --version

# Preparing db locations for both indexation methods.
mkdir -p &quot;$(dirname &quot;$tmpdb_manifests&quot;)&quot; &quot;$(dirname &quot;$tmpdb_store&quot;)&quot;

cmd_manifests=&quot;guix locate --database=$tmpdb_manifests --method=manifests&quot;
cmd_store=&quot;guix locate --database=$tmpdb_store --method=store&quot;

# Lookup without any db should fail.
guix locate --database=&quot;$tmpdb_manifests&quot; guile &amp;&amp; false
guix locate --database=&quot;$tmpdb_store&quot; guile &amp;&amp; false

# Lookup without anything in db should yield no results because the indexer
# didn&apos;t stumble upon any profile.
test -z &quot;$(guix locate --database=&quot;$tmpdb_manifests&quot; guile)&quot;

# Install a package.
guix package --bootstrap --install guile-bootstrap \
     --profile=&quot;$tmpdir/profile&quot;

# Look for &apos;guile&apos;.
$cmd_manifests --update
$cmd_manifests guile | grep &quot;$(guix build guile-bootstrap)/bin/guile&quot;
$cmd_manifests boot-9.scm | grep ^guile-bootstrap

# Using a glob pattern.
$cmd_manifests -g &apos;*.scm&apos; | grep &quot;^guile-bootstrap.*boot-9&quot;

# Statistics.
$cmd_manifests --stats

if $RUN_EXPENSIVE_TESTS
then
    $cmd_store --update
    $cmd_store guile
    $cmd_store guile | grep &quot;$(guix build guile-bootstrap)/bin/guile&quot;
    $cmd_store boot-9.scm | grep ^guile-bootstrap
fi

# The command below is an error: &quot;no files to search for&quot;...
guix locate &amp;&amp; false

# ... but this one is fine.
guix locate --clear
</pre>
</div></div> <!-- class=content -->
                         <div class=footer>generated by
                             <a href="https://git.zx2c4.com/cgit/about/">
                                 cgit
                             </a>
                         </div>
                        </div> <!-- id=cgit -->
</body>
</html>
 updates and newer SELinux.

I can't promise that this is a complete list of everything that guix-daemon
needs, but it's probably most of them. It can search for, install, upgrade,
and remove packages, create virtual machines and containers, update itself,
and so on.

Signed-off-by: Marius Bakke &lt;marius@gnu.org&gt;
</span></span></td><td>Daniel Brooks</td></tr>
<tr><td><span title='2019-09-08 11:49:25 +0200'>2019-09-08</span></td><td><a href='/guix/commit/etc/guix-daemon.cil.in?id=cc98b00857e29074de96a6ed60e325cdfffaea1a'>etc: Remove references to libexec/guix* from SELinux policy.</a><span class='msg-avail'>...<span class='msg-tooltip'>* etc/guix-daemon.cil.in: Remove references to libexec/guix*.
</span></span></td><td>Ludovic Courtès</td></tr>
