Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 46 lines 922 B view raw
1{ stdenv 2, lib 3, fetchFromGitLab 4, cmake 5, pkg-config 6, libusb1 7, libftdi1 8}: 9 10stdenv.mkDerivation { 11 pname = "fw-ectool"; 12 version = "0-unstable-2024-04-23"; 13 14 src = fetchFromGitLab { 15 domain = "gitlab.howett.net"; 16 owner = "DHowett"; 17 repo = "ectool"; 18 rev = "abdd574ebe3640047988cb928bb6789a15dd1390"; 19 hash = "sha256-j0Z2Uo1LBXlHZVHPm4Xjx3LZaI6Qq0nSdViyC/CjWC8="; 20 }; 21 22 nativeBuildInputs = [ 23 cmake 24 pkg-config 25 ]; 26 27 buildInputs = [ 28 libusb1 29 libftdi1 30 ]; 31 32 installPhase = '' 33 runHook preInstall 34 install -Dm555 src/ectool "$out/bin/ectool" 35 runHook postInstall 36 ''; 37 38 meta = with lib; { 39 description = "EC-Tool adjusted for usage with framework embedded controller"; 40 homepage = "https://gitlab.howett.net/DHowett/ectool"; 41 license = licenses.bsd3; 42 maintainers = [ maintainers.mkg20001 ]; 43 platforms = platforms.linux; 44 mainProgram = "ectool"; 45 }; 46}