mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
home-assistant-custom-lovelace-modules.bubble-card: 2.4.0 -> 3.0.0-beta.9 (#414812)
This commit is contained in:
commit
0398fcb0e6
1 changed files with 13 additions and 9 deletions
|
@ -1,28 +1,32 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildNpmPackage,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
buildNpmPackage rec {
|
||||
pname = "bubble-card";
|
||||
version = "2.4.0";
|
||||
|
||||
dontBuild = true;
|
||||
version = "3.0.0-beta.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Clooos";
|
||||
repo = "Bubble-Card";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Hn6jH7lT+bjkOM/iRCmD1B8l6ZRqjNTmVMj4IN7ixE4=";
|
||||
hash = "sha256-UgfbItYBaSiNvl3zmRrS3p/b22XwptCdIf7mA42rGXM=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-NSHsw/+dmdc2+yo4/NgT0YMMrCuL8JjRR6MSJ5xQTiE=";
|
||||
|
||||
preBuild = ''
|
||||
rm -rf dist
|
||||
'';
|
||||
|
||||
npmBuildScript = "dist";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir $out
|
||||
install -m0644 dist/bubble-card.js $out
|
||||
install -m0644 dist/bubble-pop-up-fix.js $out
|
||||
cp -rv dist $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue