nixpkgs/pkgs/os-specific/linux/fw-ectool/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
847 B
Nix
Raw Normal View History

2023-08-29 16:21:46 +00:00
{ stdenv
, lib
, fetchFromGitHub
2023-08-29 16:21:46 +00:00
, pkg-config
, hostname
2023-08-29 16:21:46 +00:00
}:
stdenv.mkDerivation {
pname = "fw-ectool";
version = "unstable-2022-12-03";
2023-08-29 16:21:46 +00:00
src = fetchFromGitHub {
2023-08-29 16:21:46 +00:00
owner = "DHowett";
repo = "fw-ectool";
rev = "54c140399bbc3e6a3dce6c9f842727c4128367be";
hash = "sha256-2teJFz4zcA+USpbVPXMEIHLdmMLem8ik7YrmrSxr/n0=";
2023-08-29 16:21:46 +00:00
};
nativeBuildInputs = [
pkg-config
hostname
2023-08-29 16:21:46 +00:00
];
buildPhase = ''
patchShebangs util
make out=out utils
'';
2023-08-29 16:21:46 +00:00
installPhase = ''
install -D out/util/ectool $out/bin/ectool
2023-08-29 16:21:46 +00:00
'';
meta = with lib; {
description = "EC-Tool adjusted for usage with framework embedded controller";
homepage = "https://github.com/DHowett/framework-ec";
2023-08-29 16:21:46 +00:00
license = licenses.bsd3;
maintainers = [ maintainers.mkg20001 ];
platforms = platforms.linux;
mainProgram = "ectool";
};
}