added chromeos-ectool pkg
This commit is contained in:
parent
da0eddf1a2
commit
ebc2cd696b
1 changed files with 24 additions and 0 deletions
24
packages/default.nix
Normal file
24
packages/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ stdenv, pkgs, lib }:
|
||||
|
||||
pkgs.stdenv.mkDerivation rec {
|
||||
name = "cros-ectool";
|
||||
nativeBuildInputs = with pkgs; [ cmake ninja pkg-config libusb libftdi1 ];
|
||||
src = pkgs.fetchFromGitLab {
|
||||
domain = "gitlab.howett.net";
|
||||
owner = "DHowett";
|
||||
repo = "ectool";
|
||||
rev = "39d64fb0e79e874cfe9877af69158fc2520b1a80";
|
||||
hash = "sha256-SHRnyqicFlviBDu3aH+uKVUstVxpIhZV6JSuZOgOwXU=";
|
||||
};
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp src/ectool $out/bin/ectool
|
||||
'';
|
||||
meta = with lib; {
|
||||
description = "ectool for ChromeOS devices";
|
||||
homepage = "https://gitlab.howett.net/DHowett/ectool";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.linux;
|
||||
mainProgram = "ectool";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue