depot/third_party/nixpkgs/pkgs/servers/home-assistant/custom-lovelace-modules/decluttering-card/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

36 lines
890 B
Nix

{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "decluttering-card";
version = "1.0.0";
src = fetchFromGitHub {
owner = "custom-cards";
repo = "decluttering-card";
rev = "v${version}";
hash = "sha256-8pf7G6RbLdpIdXYz801+wwAc3NcNs8l0x4fSGqlAmG0=";
};
npmDepsHash = "sha256-9tmEfKo8n2LR+r40hEqOfn7w6/P29XQ+KZSHL97wUuY=";
installPhase = ''
runHook preInstall
mkdir $out
cp dist/decluttering-card.js $out
runHook postInstall
'';
meta = with lib; {
description = "Declutter your lovelace configuration with the help of this card";
homepage = "https://github.com/custom-cards/decluttering-card";
changelog = "https://github.com/custom-cards/decluttering-card/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ k900 ];
platforms = platforms.all;
};
}