diff options
author | Maciej Krüger <mkg20001@gmail.com> | 2023-08-29 18:21:46 +0200 |
---|---|---|
committer | Maciej Krüger <mkg20001@gmail.com> | 2023-08-29 18:24:17 +0200 |
commit | 240ef4262b6b3619238d24fae2de34270da6a72f (patch) | |
tree | b044130b0426e009655e5fa766a661f9e9fd1be4 /pkgs/os-specific/linux/fw-ectool | |
parent | 767612b4e27bfb01e165c69a1e6c1395ac4d2689 (diff) |
fw-ectool: init at unstable-2022-12-03
Diffstat (limited to 'pkgs/os-specific/linux/fw-ectool')
-rw-r--r-- | pkgs/os-specific/linux/fw-ectool/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/fw-ectool/default.nix b/pkgs/os-specific/linux/fw-ectool/default.nix new file mode 100644 index 0000000000000..a73cc1896ecdc --- /dev/null +++ b/pkgs/os-specific/linux/fw-ectool/default.nix @@ -0,0 +1,41 @@ +{ stdenv +, lib +, fetchFromGitHub +, pkg-config +, hostname +}: + +stdenv.mkDerivation { + pname = "fw-ectool"; + version = "unstable-2022-12-03"; + + src = fetchFromGitHub { + owner = "DHowett"; + repo = "fw-ectool"; + rev = "54c140399bbc3e6a3dce6c9f842727c4128367be"; + hash = "sha256-2teJFz4zcA+USpbVPXMEIHLdmMLem8ik7YrmrSxr/n0="; + }; + + nativeBuildInputs = [ + pkg-config + hostname + ]; + + buildPhase = '' + patchShebangs util + make out=out utils + ''; + + installPhase = '' + install -D out/util/ectool $out/bin/ectool + ''; + + meta = with lib; { + description = "EC-Tool adjusted for usage with framework embedded controller"; + homepage = "https://github.com/DHowett/framework-ec"; + license = licenses.bsd3; + maintainers = [ maintainers.mkg20001 ]; + platforms = platforms.linux; + mainProgram = "ectool"; + }; +} |