pkgs/fw-ectool: init at unstable-2024-01-03

This commit is contained in:
Infinidoge 2024-02-27 02:52:01 -05:00
parent 9f92ca032d
commit 2574b82458
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
2 changed files with 51 additions and 0 deletions

View file

@ -1,6 +1,7 @@
{ pkgs }:
{
ears-cli = pkgs.callPackage ./ears-cli.nix { };
fw-ectool = pkgs.callPackage ./fw-ectool.nix { };
hexagon = pkgs.callPackage ./hexagon.nix { };
mcaselector = pkgs.callPackage ./mcaselector.nix { };
mkSymlinks = pkgs.callPackage ./mk-symlinks.nix { };

50
pkgs/fw-ectool.nix Normal file
View file

@ -0,0 +1,50 @@
{ stdenv
, lib
, fetchFromGitLab
, pkg-config
, cmake
, hostname
, libusb1
, libftdi1
}:
stdenv.mkDerivation {
pname = "fw-ectool";
version = "unstable-2024-01-03";
src = fetchFromGitLab {
domain = "gitlab.howett.net";
owner = "DHowett";
repo = "ectool";
rev = "3ebe7b8b713b2ebfe2ce92d48fd8d044276b2879";
hash = "sha256-s6PrFPAL+XJAENqLw5oJqFmAf11tHOJ8h3F5l3pOlZ4=";
};
nativeBuildInputs = [
pkg-config
cmake
hostname
];
buildInputs = [
libusb1
libftdi1
];
buildPhase = ''
make ectool
'';
installPhase = ''
install -D src/ectool $out/bin/ectool
'';
meta = with lib; {
description = "EC-Tool adjusted for usage with framework embedded controller";
homepage = "https://github.com/DHowett/framework-ec";
license = licenses.bsd3;
maintainers = [ maintainers.mkg20001 ];
platforms = platforms.linux;
mainProgram = "ectool";
};
}