fw-ectool: init at unstable-2022-12-03
This commit is contained in:
parent
767612b4e2
commit
240ef4262b
41
pkgs/os-specific/linux/fw-ectool/default.nix
Normal file
41
pkgs/os-specific/linux/fw-ectool/default.nix
Normal file
|
@ -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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -4691,6 +4691,8 @@ with pkgs;
|
||||||
|
|
||||||
cowsay = callPackage ../tools/misc/cowsay { };
|
cowsay = callPackage ../tools/misc/cowsay { };
|
||||||
|
|
||||||
|
fw-ectool = callPackage ../os-specific/linux/fw-ectool { };
|
||||||
|
|
||||||
czkawka = callPackage ../tools/misc/czkawka {
|
czkawka = callPackage ../tools/misc/czkawka {
|
||||||
inherit (darwin.apple_sdk.frameworks) Foundation;
|
inherit (darwin.apple_sdk.frameworks) Foundation;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue