Merge pull request #305530 from NixOS/revert-302719-fw-ectool

Revert "fw-ectool: unstable-2022-12-03 -> 0-unstable-2023-12-15, switch upstream"
This commit is contained in:
Nick Cao 2024-04-21 02:14:30 -04:00 committed by GitHub
commit 68165781cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,43 +1,38 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitLab , fetchFromGitHub
, cmake
, pkg-config , pkg-config
, libusb1 , hostname
, libftdi1
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "fw-ectool"; pname = "fw-ectool";
version = "0-unstable-2023-12-15"; version = "unstable-2022-12-03";
src = fetchFromGitLab { src = fetchFromGitHub {
domain = "gitlab.howett.net";
owner = "DHowett"; owner = "DHowett";
repo = "ectool"; repo = "fw-ectool";
rev = "3ebe7b8b713b2ebfe2ce92d48fd8d044276b2879"; rev = "54c140399bbc3e6a3dce6c9f842727c4128367be";
hash = "sha256-s6PrFPAL+XJAENqLw5oJqFmAf11tHOJ8h3F5l3pOlZ4="; hash = "sha256-2teJFz4zcA+USpbVPXMEIHLdmMLem8ik7YrmrSxr/n0=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
cmake
pkg-config pkg-config
hostname
]; ];
buildInputs = [ buildPhase = ''
libusb1 patchShebangs util
libftdi1 make out=out utils
]; '';
installPhase = '' installPhase = ''
runHook preInstall install -D out/util/ectool $out/bin/ectool
install -Dm555 src/ectool "$out/bin/ectool"
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {
description = "EC-Tool adjusted for usage with framework embedded controller"; description = "EC-Tool adjusted for usage with framework embedded controller";
homepage = "https://gitlab.howett.net/DHowett/ectool"; homepage = "https://github.com/DHowett/framework-ec";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = [ maintainers.mkg20001 ]; maintainers = [ maintainers.mkg20001 ];
platforms = platforms.linux; platforms = platforms.linux;