summaryrefslogtreecommitdiff
path: root/siguix/packages/r8169-hack.scm
blob: 9288e7a1ef53ac98aa75b436ac841106d270b4ef (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
(define-module (siguix packages r8169-hack)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module (guix build-system copy)
  #:use-module (guix licenses)
  #:use-module (guix utils))

(define-public r8169-hack
  (let ((commit "f3f909b7a32a69d4a811060c75fd72189c0bcad1")
        (revision "1")
        (version "0.0.0"))
    (package
      (name "r8169-hack")
      (version (git-version
                version revision commit))
      (source
       (origin
         (method git-fetch)
         (uri (git-reference (url "https://git.steel-is-real.com/git/r8169-hack")
                             (commit commit)))
         (file-name (git-file-name name commit))
         (sha256
          (base32 "0lp0n27jsl0ijlalwf644210qzmkq3avxid53lr4fxx7fb5qz30l"))))
      (build-system copy-build-system)
      (arguments
       '(#:install-plan
         '(("r8169-hack" "lib/elogind/system-sleep/"))))
      (home-page "https://git.steel-is-real.com/r8169-hack")
      (synopsis "Simple script to reload r8169 after sleep")
      (description "Some Realtek chips fail to reconnect after resuming from hibernation.
This wasn't a problem with the Linux 5.10 series.  But it is again
from 5.15 onwards.")
      (license gpl3+))))