summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2024-04-20 07:38:46 -0400
committerGitHub <noreply@github.com>2024-04-20 07:38:46 -0400
commite145d5d7802313345cabbc86d551818de4224def (patch)
tree6b2b408d07e99cf6dfed1175547a252551c5da89
parentMerge pull request #305438 from r-ryantm/auto-update/kubefirst (diff)
downloadnixpkgs-origin/revert-302719-fw-ectool.tar.gz
Revert "fw-ectool: unstable-2022-12-03 -> 0-unstable-2023-12-15, switch upstream"origin/revert-302719-fw-ectool
-rw-r--r--pkgs/os-specific/linux/fw-ectool/default.nix33
1 files changed, 14 insertions, 19 deletions
diff --git a/pkgs/os-specific/linux/fw-ectool/default.nix b/pkgs/os-specific/linux/fw-ectool/default.nix
index 1d23411f3eef..a73cc1896ecd 100644
--- a/pkgs/os-specific/linux/fw-ectool/default.nix
+++ b/pkgs/os-specific/linux/fw-ectool/default.nix
@@ -1,43 +1,38 @@
{ stdenv
, lib
-, fetchFromGitLab
-, cmake
+, fetchFromGitHub
, pkg-config
-, libusb1
-, libftdi1
+, hostname
}:
stdenv.mkDerivation {
pname = "fw-ectool";
- version = "0-unstable-2023-12-15";
+ version = "unstable-2022-12-03";
- src = fetchFromGitLab {
- domain = "gitlab.howett.net";
+ src = fetchFromGitHub {
owner = "DHowett";
- repo = "ectool";
- rev = "3ebe7b8b713b2ebfe2ce92d48fd8d044276b2879";
- hash = "sha256-s6PrFPAL+XJAENqLw5oJqFmAf11tHOJ8h3F5l3pOlZ4=";
+ repo = "fw-ectool";
+ rev = "54c140399bbc3e6a3dce6c9f842727c4128367be";
+ hash = "sha256-2teJFz4zcA+USpbVPXMEIHLdmMLem8ik7YrmrSxr/n0=";
};
nativeBuildInputs = [
- cmake
pkg-config
+ hostname
];
- buildInputs = [
- libusb1
- libftdi1
- ];
+ buildPhase = ''
+ patchShebangs util
+ make out=out utils
+ '';
installPhase = ''
- runHook preInstall
- install -Dm555 src/ectool "$out/bin/ectool"
- runHook postInstall
+ install -D out/util/ectool $out/bin/ectool
'';
meta = with lib; {
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;
maintainers = [ maintainers.mkg20001 ];
platforms = platforms.linux;