mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
home-assistant-custom-lovelace-modules.vacuum-card: init at 2.10.1
This commit is contained in:
parent
ee61973cb7
commit
015328399e
@ -39,6 +39,8 @@
|
||||
|
||||
universal-remote-card = callPackage ./universal-remote-card { };
|
||||
|
||||
vacuum-card = callPackage ./vacuum-card { };
|
||||
|
||||
valetudo-map-card = callPackage ./valetudo-map-card { };
|
||||
|
||||
weather-card = callPackage ./weather-card { };
|
||||
|
38
pkgs/servers/home-assistant/custom-lovelace-modules/vacuum-card/default.nix
Executable file
38
pkgs/servers/home-assistant/custom-lovelace-modules/vacuum-card/default.nix
Executable file
@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
buildNpmPackage,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "vacuum-card";
|
||||
version = "2.10.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "denysdovhan";
|
||||
repo = "vacuum-card";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-NJeD6YhXmNNBuhRWjK74sTrxzXyGSbehm5lz05sNA3Y=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-x+pq58chBSgFVGr9Xtka5/MH/AHV0zMpyKfA/kEEXBM=";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
cp dist/vacuum-card.js $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.entrypoint = "vacuum-card.js";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Vacuum cleaner card for Home Assistant Lovelace UI";
|
||||
homepage = "https://github.com/denysdovhan/vacuum-card";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ baksa ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user