~ruther/guix-local

b0897f8532a5b141503afc2833c0dd62b0faef9a — Cayetano Santos 8 months ago 9bb5a02
gnu: fpm2: Improve style.

* gnu/packages/password-utils.scm (fpm2)[arguments]: Use G-Expressions.
[inputs]: Remove labels.

Change-Id: If282ecb31ad47be3c620601bb4d14d9ee646ab23
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
1 files changed, 26 insertions(+), 24 deletions(-)

M gnu/packages/password-utils.scm
M gnu/packages/password-utils.scm => gnu/packages/password-utils.scm +26 -24
@@ 1595,30 1595,29 @@ is the community-enhanced, \"jumbo\" version of John the Ripper.")
  (package
    (name "fpm2")
    (version "0.79")
    (source (origin
              (method url-fetch)
              (uri (string-append "https://als.regnet.cz/fpm2/download/fpm2-"
                                  version ".tar.bz2"))
              (sha256
               (base32
                "19sdy1lygfhkg5nxi2w9a4d9kwvw24nxp0ix0p0lz91qpvk9qpnm"))))
    (source
     (origin
       (method url-fetch)
       (uri (string-append "https://als.regnet.cz/fpm2/download/fpm2-"
                           version ".tar.bz2"))
       (sha256
        (base32
         "19sdy1lygfhkg5nxi2w9a4d9kwvw24nxp0ix0p0lz91qpvk9qpnm"))))
    (build-system gnu-build-system)
    (inputs `(("gtk2" ,gtk+-2)
              ("gnupg" ,gnupg)
              ("libxml2" ,libxml2)))
    (native-inputs (list pkg-config intltool))
    (arguments
     `(#:configure-flags '("CFLAGS=-O2 -g -fcommon")
       #:phases
       (modify-phases %standard-phases
         (add-before 'configure 'pre-configure
           ;; The file po/POTFILES.in ends up missing for some reason in
           ;; both nix and guix builds. Adding the file with contents
           ;; found during troubleshooting.
           (lambda _
             (call-with-output-file "po/POTFILES.in"
               (lambda (port)
                 (format port "data/fpm2.desktop.in
     (list
      #:configure-flags
      #~(list "CFLAGS=-O2 -g -fcommon")
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'configure 'pre-configure
            ;; The file po/POTFILES.in ends up missing for some reason in
            ;; both nix and guix builds. Adding the file with contents
            ;; found during troubleshooting.
            (lambda _
              (call-with-output-file "po/POTFILES.in"
                (lambda (port)
                  (format port "data/fpm2.desktop.in
data/fpm2.desktop.in.in
fpm2.glade
src/callbacks.c


@@ 1627,8 1626,11 @@ src/fpm_file.c
src/interface.c
src/support.c
fpm2.glade
")))
             #t)))))
"))))))))
    (inputs
     (list gtk+-2 gnupg libxml2))
    (native-inputs
     (list pkg-config intltool))
    (synopsis "Manage, generate and store passwords encrypted")
    (description "FPM2 is GTK2 port from Figaro's Password Manager
originally developed by John Conneely, with some new enhancements.