mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
Merge pull request #289061 from mweinelt/multiple-entity-rows
home-assistant-custom-lovelace-modules.multiple-entity-row: init at 4.5.0
This commit is contained in:
commit
6604bca690
@ -8,6 +8,8 @@
|
||||
|
||||
mini-media-player = callPackage ./mini-media-player {};
|
||||
|
||||
multiple-entity-row = callPackage ./multiple-entity-row { };
|
||||
|
||||
mushroom = callPackage ./mushroom { };
|
||||
|
||||
zigbee2mqtt-networkmap = callPackage ./zigbee2mqtt-networkmap { };
|
||||
|
@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, mkYarnPackage
|
||||
, fetchFromGitHub
|
||||
, fetchYarnDeps
|
||||
}:
|
||||
|
||||
mkYarnPackage rec {
|
||||
pname = "multiple-entity-row";
|
||||
version = "4.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "benct";
|
||||
repo = "lovelace-multiple-entity-row";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-3CkBzxB3bX4jwk71PaRMX1MkAb6UVOBqZCYpTN7VORY=";
|
||||
};
|
||||
|
||||
packageJSON = ./package.json;
|
||||
|
||||
offlineCache = fetchYarnDeps {
|
||||
yarnLock = "${src}/yarn.lock";
|
||||
hash = "sha256-8YIcQhbYf0e2xO620zVHEk/0sssBmzF/jCq+2za+D6E=";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
yarn --offline build
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
install -m0644 ./deps/multiple-entity-row/multiple-entity-row.js $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
doDist = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Show multiple entity states and attributes on entity rows in Home Assistant's Lovelace UI";
|
||||
homepage = "https://github.com/benct/lovelace-multiple-entity-row";
|
||||
changelog = "https://github.com/benct/lovelace-multiple-entity-row/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
{
|
||||
"name": "multiple-entity-row",
|
||||
"version": "4.5.0",
|
||||
"description": "Show multiple entity states, attributes and icons on entity rows in Home Assistant's Lovelace UI",
|
||||
"keywords": [
|
||||
"home-assistant",
|
||||
"homeassistant",
|
||||
"lovelace",
|
||||
"custom-cards",
|
||||
"multiple",
|
||||
"entity",
|
||||
"row"
|
||||
],
|
||||
"module": "multiple-entity-row.js",
|
||||
"repository": "https://github.com/benct/lovelace-multiple-entity-row.git",
|
||||
"author": "benct <ben@tomlin.no>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"custom-card-helpers": "1.8.0",
|
||||
"lit": "^2.7.4",
|
||||
"memoize-one": "^6.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.22.1",
|
||||
"@babel/preset-env": "^7.22.4",
|
||||
"babel-loader": "^9.1.2",
|
||||
"eslint": "^8.41.0",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"prettier": "^2.8.8",
|
||||
"webpack": "^5.84.1",
|
||||
"webpack-cli": "^5.1.1"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint src/**/*.js",
|
||||
"dev": "webpack -c webpack.config.js",
|
||||
"build": "yarn lint && webpack -c webpack.config.js"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user