mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
anker-powerconf-c200-linux-tools: init at 0.1.0
This commit is contained in:
41
pkgs/by-name/an/anker-powerconf-c200-linux-tools/package.nix
Normal file
41
pkgs/by-name/an/anker-powerconf-c200-linux-tools/package.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "anker-powerconf-c200-linux-tools";
|
||||
version = "0.1.0";
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "erans";
|
||||
repo = "anker-powerconf-c200-linux-tools";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-txIVTbqxnFQ8GcJgxTp89Qc3U5CXkYolXCO4E1PXHHA=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out"/bin
|
||||
cp ./build/anker-powerconf-c200-linux-tools "$out"/bin
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Linux CLI tools for the Anker PowerConf C200 webcam";
|
||||
mainProgram = "anker-powerconf-c200-linux-tools";
|
||||
homepage = "https://github.com/erans/anker-powerconf-c200-linux-tools";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ fernsehmuell ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user