unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 898903628c0d775e648cc1787a69a12326f5f4a8 2826 bytes (raw)
name: gnu/packages/notcurses.scm 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
 
(define-module (gnu packages notcurses)
  #:use-module (guix utils)
  #:use-module (gnu packages)
  #:use-module (guix packages)
  #:use-module (guix build utils)
  #:use-module (guix git-download)
  #:use-module (guix build-system cmake)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (gnu packages gcc)
  #:use-module (gnu packages video)
  #:use-module (gnu packages ncurses)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages libunistring)
  #:use-module (ice-9 match))

(define-public notcurses
  (let ((commit "d15eb6003cbd65f11163916261cf6cd5600c77fa"))
    (package
      (name "notcurses")
      (version "2.4.9")
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "https://github.com/dankamongmen/notcurses")
               (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32
           "10jf6iai1r0xafrgaz978y9bqlaw1gvd11gc0yynwwp6rcs97g17"))))
      (build-system cmake-build-system)
      (arguments
       `(#:tests? #f
                  #:build-type "-DVAR=val"
                  #:make-flags
                  (list
                   (string-append "prefix="
                                  (assoc-ref %outputs "out"))
                   "CC=gcc")
                  #:configure-flags
                  (map (lambda (s)
                         (string-append "-D" s))
                       '("USE_CPP=off"     "USE_COVERAGE=off"
                         "USE_DOXYGEN=off" "USE_DOCTEST=off"
                         "USE_GPM=off"     "USE_MULTIMEDIA=ffmpeg"
                         "USE_PANDOC=off"  "FSG_BUILD=ON"))
                  #:phases
                  (modify-phases %standard-phases
                    (add-before 'build 'patch-makefile-shell
                      (lambda _
                        (setenv "HOME" "/tmp")))
                    (add-before 'build 'set-prefix-in-makefile
                      (lambda* (#:key outputs #:allow-other-keys)
                        (let ((out (assoc-ref outputs "out")))
                          (substitute* "Makefile"
                            (("PREFIX =.*")
                             (string-append "PREFIX = " out "\n")))
                          #true))))))
      (native-inputs
       `(("ncurses" ,ncurses)
         ("gcc-toolchain" ,gcc-10)
         ("pkg-config" ,pkg-config)))
      (inputs
       `(("zlib" ,zlib)
         ("ffmpeg" ,ffmpeg)
         ("libunistring" ,libunistring)))
      (synopsis "Not-ncurses: A library facilitating complex TUIs on modern terminals")
      (description "Supporting vivid colors, multimedia, threads, & Unicode to the max.")
      (home-page "https://notcurses.com/html/")
      (license license:asl2.0))))

debug log:

solving 898903628c ...
found 898903628c in https://yhetil.org/guix-patches/6a6031ead6f9f61bc8eed976374638089efdaf3f.1638231894.git.blake@nonconstructivism.com/

applying [1/1] https://yhetil.org/guix-patches/6a6031ead6f9f61bc8eed976374638089efdaf3f.1638231894.git.blake@nonconstructivism.com/
diff --git a/gnu/packages/notcurses.scm b/gnu/packages/notcurses.scm
new file mode 100644
index 0000000000..898903628c

Checking patch gnu/packages/notcurses.scm...
Applied patch gnu/packages/notcurses.scm cleanly.

index at:
100644 898903628c0d775e648cc1787a69a12326f5f4a8	gnu/packages/notcurses.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

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).