~cybersyn/rml

ref: devel rml/unguix/notcurses.scm -rw-r--r-- 2.4 KiB
f37e30b6 — Blake Shaw notcurses: not passing linter but builds and installs fine 2 months ago
                                                                                
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
72
73
74
75
76
77
78
79
(define-module (notcurses)
  #:use-module (gnu packages)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix utils)
  #:use-module (guix build utils)
  #:use-module (guix packages)
  #:use-module (guix git-download)
  #:use-module (guix build-system cmake)
  #:use-module (gnu packages)
  #:use-module (gnu packages gcc)
  #:use-module (gnu packages base)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages python)
  #:use-module (gnu packages ncurses)
  #:use-module (gnu packages compression)
  #:use-module (gnu packages check)
  #:use-module (gnu packages video)
  #:use-module (gnu packages libunistring)
  #:use-module (gnu packages aidc)
  #:use-module (gnu packages haskell-xyz)
  #: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"
		  #:build-type "DFSG_BUILD=ON"
		  #:build-type "-DUSE_MULTIMEDIA=ffmpeg"
		  #:make-flags
		  (list
		   (string-append "prefix="
				  (assoc-ref %outputs "out"))
		   "CC=gcc" "CXX=g++")
		  #: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
       `(("pkg-config" ,pkg-config)
	 ("zlib" ,zlib)
	 ("ffmpeg" ,ffmpeg)
	 ("libunistring" ,libunistring)
	 ("ncurses" ,ncurses)
	 ("gpm" ,gpm)
	 ("glibc" ,glibc)
	 ("pandoc" ,pandoc)
	 ("gcc-toolchain" ,gcc-10)
	 ("doctest" ,doctest)
	 ("python" ,python)))
      (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))))