Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
867 B
Nix
42 lines
867 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
fetchNpmDeps,
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "weather-chart-card";
|
|
version = "2.4.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mlamberts78";
|
|
repo = "weather-chart-card";
|
|
rev = "V${version}";
|
|
hash = "sha256-JF7+XataMdUIGXfonF4XlZGitY9kqKony/U0/yw5jUA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
rm -rf dist
|
|
ln -s ${./package-lock.json} ./package-lock.json
|
|
'';
|
|
|
|
npmDeps = fetchNpmDeps {
|
|
inherit src postPatch;
|
|
hash = "sha256-OJF8N7vPLRX0ec5gaQKAxLR227uoeuAU5z+QVNyOeTY=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -R dist/* $out/
|
|
'';
|
|
|
|
meta = {
|
|
description = "Custom weather card with charts";
|
|
homepage = "https://github.com/mlamberts78/weather-chart-card";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ hexa ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|