blob: dd24730104f36f999023e93ae1493a902d094888 (
plain) (
blame)
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
|
{ stdenv
, lib
, fetchFromGitLab
, cmake
, pkg-config
, libusb1
, libftdi1
}:
stdenv.mkDerivation {
pname = "fw-ectool";
version = "0-unstable-2024-04-23";
src = fetchFromGitLab {
domain = "gitlab.howett.net";
owner = "DHowett";
repo = "ectool";
rev = "abdd574ebe3640047988cb928bb6789a15dd1390";
hash = "sha256-j0Z2Uo1LBXlHZVHPm4Xjx3LZaI6Qq0nSdViyC/CjWC8=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
libusb1
libftdi1
];
installPhase = ''
runHook preInstall
install -Dm555 src/ectool "$out/bin/ectool"
runHook postInstall
'';
meta = with lib; {
description = "EC-Tool adjusted for usage with framework embedded controller";
homepage = "https://gitlab.howett.net/DHowett/ectool";
license = licenses.bsd3;
maintainers = [ maintainers.mkg20001 ];
platforms = platforms.linux;
mainProgram = "ectool";
};
}
|