summaryrefslogtreecommitdiffstats
path: root/guix/jd/packages/linux.scm
blob: 94549c390e6ff389add7b94fca3a28d1db43bd44 (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
(define-module (jd packages linux)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system linux-module)
  #:use-module (guix git-download)
  #:use-module (guix gexp)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages pciutils)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages autotools)
  #:use-module ((guix licenses) #:prefix license:))

(define-public xmm7360-pci
  (package
    (name "xmm7360-pci")
    (version "0.1.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/xmm7360/xmm7360-pci.git")
             (commit "a8ff2c6ceee84cbe74df8a78cfaa5a016d362ed4")))
       (file-name (git-file-name name version))
       (sha256
        (base32
         "1aals95hk76rgd21rknqc9qfjva6g6gwicw6wz19m20bn08bs2f3"))))
    (build-system linux-module-build-system)
    (arguments
     (list
      #:tests? #f
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-makefile
            (lambda _
              (substitute* (find-files
                            "." "^Makefile(\\.include)?$")
		(("^ccflags-y := .*$")
		 "ccflags-y := -Wno-multichar -Wno-incompatible-pointer-types")))))))
    (native-inputs
     `(("pkg-config" ,pkg-config)
       ("autoconf" ,autoconf)
       ("automake" ,automake)))
    (inputs
     `(("kernel" ,linux-libre)
       ("pciutils" ,pciutils)))
    (synopsis "Kernel module for Intel XMM7360 LTE modem")
    (description
     "This package provides a kernel module for the Intel XMM7360 LTE modem, allowing it to function in Linux.")
    (home-page "https://github.com/xmm7360/xmm7360-pci")
    (license license:gpl3+)))