at 23.11-beta 41 lines 847 B view raw
1{ stdenv 2, lib 3, fetchFromGitHub 4, pkg-config 5, hostname 6}: 7 8stdenv.mkDerivation { 9 pname = "fw-ectool"; 10 version = "unstable-2022-12-03"; 11 12 src = fetchFromGitHub { 13 owner = "DHowett"; 14 repo = "fw-ectool"; 15 rev = "54c140399bbc3e6a3dce6c9f842727c4128367be"; 16 hash = "sha256-2teJFz4zcA+USpbVPXMEIHLdmMLem8ik7YrmrSxr/n0="; 17 }; 18 19 nativeBuildInputs = [ 20 pkg-config 21 hostname 22 ]; 23 24 buildPhase = '' 25 patchShebangs util 26 make out=out utils 27 ''; 28 29 installPhase = '' 30 install -D out/util/ectool $out/bin/ectool 31 ''; 32 33 meta = with lib; { 34 description = "EC-Tool adjusted for usage with framework embedded controller"; 35 homepage = "https://github.com/DHowett/framework-ec"; 36 license = licenses.bsd3; 37 maintainers = [ maintainers.mkg20001 ]; 38 platforms = platforms.linux; 39 mainProgram = "ectool"; 40 }; 41}