nixos-configs/scopedPackages/lovelace-components/material-rounded-theme/default.nix
matt1432 13453f6839
All checks were successful
Discord / discord commits (push) Has been skipped
docs: add meta to all scoped packages
2025-02-18 15:19:08 -05:00

40 lines
871 B
Nix

{
# nix build inputs
lib,
buildNpmPackage,
fetchFromGitHub,
...
}: let
pname = "material-rounded-theme";
version = "3.0.8";
in
buildNpmPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "Nerwyn";
repo = pname;
rev = version;
hash = "sha256-Ao+ogzLXWH5Kfix8KeOr8FPXmjCFkwKqKz5Jp1XbpD0=";
};
postPatch = ''
substituteInPlace ./webpack.config.js --replace-fail \
"git branch --show-current" "echo main"
'';
npmDepsHash = "sha256-P9IrXMaRsOY2QEBAuV8X15QGonImvLj2MaIED5GzwuA=";
installPhase = ''
mkdir $out
cp ./dist/* $out
'';
meta = {
license = lib.licenses.asl20;
homepage = "https://github.com/Nerwyn/material-rounded-theme";
description = ''
Material Design 3 Colors and Components in Home Assistant.
'';
};
}