summaryrefslogtreecommitdiff
path: root/modules/ryan-packages/linux.scm
blob: d5b215c35883eb1590b71be4243d44ad9c5bc6d0 (plain)
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
80
81
82
83
84
85
86
87
88
89
90
91
92
(define-module (ryan-packages linux)
               #:use-module (guix download)
               #:use-module (guix packages)
               #:use-module (guix gexp)
               #:use-module (guix build utils)
               #:use-module (gnu packages)
               #:use-module (gnu packages linux)
               #:use-module (gnu packages vim)
               #:use-module (gnu packages gcc)
               #:use-module (gnu packages textutils)
               #:use-module (gnu packages tree-sitter)
               #:use-module (gnu packages julia)
               #:use-module (gnu packages python-xyz)
               #:use-module (guix git-download)
               #:use-module (guix utils))

(define-public bluez-ryan
  (package
    (inherit bluez)
    (version "5.79")
    (source
      (origin
        (method url-fetch)
        (uri (string-append
               "mirror://kernel.org/linux/bluetooth/bluez-"
               version ".tar.xz"))
        (sha256
          (base32
            "12pal1m4xlr8k7kxb6isv5lbaca2wc5zcgy0907wfwcz78qaar21"))))
    (arguments (substitute-keyword-arguments (package-arguments bluez)
      ((#:configure-flags ''())
       #~(append (list "--disable-manpages") #$flags))
      ((#:phases phases)
       #~(modify-phases #$phases
            (add-after 'configure 'fix-make
              (lambda _
                (substitute* "Makefile"
                  (("install-confDATA:") "install-IGNORED:")
                  (("install-confDATA") "")
                  (("bluetoothd-fix-permissions:") "install-IGNORED2:")
                  (("bluetoothd-fix-permissions") ""))))))))))

(define-public neovim-ryan
  (package
    (inherit neovim)
    (version "0.11.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                     (url "https://github.com/neovim/neovim")
                     (commit (string-append "v" version))))
              (file-name (git-file-name "neovim" version))
              (sha256
                (base32
                  "0arypdiycmss5g9wav21hfdc384v1ly82jnsc32zincl2y3f628q"))))
    (native-inputs (modify-inputs (package-native-inputs neovim) (prepend gcc-14)))
    (inputs (modify-inputs (package-inputs neovim) (append utf8proc-2.10.0) (replace "tree-sitter" treesitter-ryan)))))

(define-public treesitter-ryan
  (package
    (inherit tree-sitter)
    (version "0.25.4")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                     (url "https://github.com/tree-sitter/tree-sitter")
                     (commit (string-append "v" version))))
              (file-name (git-file-name "tree-sitter" version))
              (sha256
                (base32
                  "0d4ca0ikpmkqg9xlbx45c7mafr5yz0g99y3s3jy5xk86f0nkz8ga"))
              (modules '((guix build utils)))
              (snippet #~(begin
                           (delete-file-recursively "lib/src/unicode")))))))

(define-public utf8proc-2.10.0
  (package
    (inherit utf8proc-2.7.0)
    (version "2.10.0")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                     (url "https://github.com/JuliaStrings/utf8proc")
                     (commit (string-append "v" version))))
              (file-name (git-file-name "utf8proc" version))
              (sha256
                (base32
                  "1n1k67x39sk8xnza4w1xkbgbvgb1g7w2a7j2qrqzqaw1lyilqsy2"))))
    (native-inputs (modify-inputs (package-native-inputs utf8proc-2.7.0) (prepend julia)))
    (arguments (append (package-arguments utf8proc-2.7.0) (list #:tests? #f)))))

neovim-ryan