nixos-configs/scopedPackages/lovelace-components/material-rounded-theme/default.nix
matt1432 554e70d040
All checks were successful
Discord / discord commits (push) Has been skipped
fix(hass): use js module for material you theme
2024-12-27 06:26:39 -05:00

31 lines
731 B
Nix

{
buildNpmPackage,
concatTextFile,
material-rounded-theme-src,
...
}: let
package = builtins.fromJSON (builtins.readFile "${material-rounded-theme-src}/package.json");
in
buildNpmPackage {
pname = package.name;
inherit (package) version;
src = material-rounded-theme-src;
postPatch = ''
substituteInPlace ./webpack.config.js --replace-fail "git branch --show-current" "echo main"
'';
npmDepsHash = "sha256-INI/9N4IutwVc56w5iMzLgPtW6KQMBWwVBGN0fTxNz8=";
installPhase = ''
mkdir $out
cp ./dist/* $out
'';
passthru.update = concatTextFile {
name = "update";
files = [./update.sh];
executable = true;
destination = "/bin/update";
};
}