adding ec tool

This commit is contained in:
Felix 2024-11-26 08:07:08 +01:00 committed by Xelef2000
parent b3607cc1cc
commit 16f8ec380b
2 changed files with 26 additions and 0 deletions

25
cros-ectool.nix Normal file
View file

@ -0,0 +1,25 @@
{ stdenv, pkgs, lib }:
pkgs.stdenv.mkDerivation rec {
name = "cros-ectool";
nativeBuildInputs = with pkgs; [ cmake ninja pkg-config libusb1 libftdi1 ];
src = pkgs.fetchFromGitLab {
domain = "gitlab.howett.net";
owner = "DHowett";
repo = "ectool";
rev = "39d64fb0e79e874cfe9877af69158fc2520b1a80";
hash = lib.fakeHash;
};
installPhase = ''
mkdir -p $out/bin
cp src/ectool $out/bin/ectool
'';
meta = with lib; {
description = "ectool for ChromeOS devices";
homepage = "https://gitlab.howett.net/DHowett/ectool";
license = licenses.bsd3;
maintainers = with maintainers; [ ChocolateLoverRaj ];
platforms = platforms.linux;
mainProgram = "ectool";
};
}

View file

@ -41,6 +41,7 @@
gtk-doc
gdb
valgrind
(pkgs.callPackage ./cros-ectool.nix { })
# Add libfprint with an override
(pkgs.libfprint.overrideAttrs (oldAttrs: {