blob: 72a031f7c82a3cde8b490bcf9708086885944b9e (
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
|
;;; Package Repository for GNU Guix
;;; Copyright © 2021-2025 Franz Geffke <m@f-a.nz>
(define-module (px packages framework)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system cmake)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages libusb)
#:use-module (gnu packages libftdi))
(define-public ectool
(package
(name "ectool")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitlab.howett.net/DHowett/ectool")
(commit "0ac6155abbb7d4622d3bcf2cdf026dde2f80dad7")))
(file-name (git-file-name name version))
(sha256
(base32 "0zwb2b8yldhxkwwh680mfb15mlk6n7b16zl0mmr4q1wnxj5abhqh"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin")))
(mkdir-p bin)
(install-file "src/ectool" bin)
#t))))))
(native-inputs
(list pkg-config))
(inputs
(list libusb libftdi))
(home-page "https://gitlab.howett.net/DHowett/ectool")
(synopsis "ChromeOS EC Tool")
(description
"ECTool is a utility for interacting with the Embedded Controller (EC)
in ChromeOS devices and Framework laptops.")
(license license:expat)))
|