depot/pkgs/os-specific/linux/fw-ectool/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

46 lines
922 B
Nix

{ 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";
};
}