diff options
Diffstat (limited to 'derivations')
| -rw-r--r-- | derivations/fw-ectool/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/derivations/fw-ectool/default.nix b/derivations/fw-ectool/default.nix new file mode 100644 index 0000000..68aac91 --- /dev/null +++ b/derivations/fw-ectool/default.nix @@ -0,0 +1,45 @@ +{ + stdenv, + lib, + fetchFromGitHub, + cmake, + pkg-config, + libusb1, + libftdi1, +}: +stdenv.mkDerivation { + pname = "fw-ectool"; + version = "0-unstable-2024-04-23"; + + src = fetchFromGitHub { + owner = "polwex"; + 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"; + }; +} |
