Merge pull request #302719 from NickCao/fw-ectool

fw-ectool: unstable-2022-12-03 -> 0-unstable-2023-12-15, switch upstream

authored by Nick Cao and committed by GitHub 5f81b281 689c67d2

+19 -14
+19 -14
pkgs/os-specific/linux/fw-ectool/default.nix
··· 1 { stdenv 2 , lib 3 - , fetchFromGitHub 4 , pkg-config 5 - , hostname 6 }: 7 8 stdenv.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;
··· 1 { stdenv 2 , lib 3 + , fetchFromGitLab 4 + , cmake 5 , pkg-config 6 + , libusb1 7 + , libftdi1 8 }: 9 10 stdenv.mkDerivation { 11 pname = "fw-ectool"; 12 + version = "0-unstable-2023-12-15"; 13 14 + src = fetchFromGitLab { 15 + domain = "gitlab.howett.net"; 16 owner = "DHowett"; 17 + repo = "ectool"; 18 + rev = "3ebe7b8b713b2ebfe2ce92d48fd8d044276b2879"; 19 + hash = "sha256-s6PrFPAL+XJAENqLw5oJqFmAf11tHOJ8h3F5l3pOlZ4="; 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;