diff options
author | Franz Geffke <m@f-a.nz> | 2025-03-18 17:13:48 +0000 |
---|---|---|
committer | Franz Geffke <m@f-a.nz> | 2025-03-18 17:13:48 +0000 |
commit | eba4f77e01c745c434b497e1bf364c72752fa2bd (patch) | |
tree | e403004135d08ed025cf7866d6539302c397fbf9 /px/packages/framework.scm | |
parent | cb9cc81c26e2df8b6c5420354becaa61204b8019 (diff) |
px: ectool: Added
Diffstat (limited to 'px/packages/framework.scm')
-rw-r--r-- | px/packages/framework.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/px/packages/framework.scm b/px/packages/framework.scm new file mode 100644 index 0000000..6bfdf14 --- /dev/null +++ b/px/packages/framework.scm @@ -0,0 +1,47 @@ +(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)))
\ No newline at end of file |