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
37 lines
851 B
Nix
37 lines
851 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildNpmPackage (finalAttrs: {
|
|
pname = "restriction-card";
|
|
version = "1.2.19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iantrich";
|
|
repo = "restriction-card";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-2scUSEpDPrMoos/QuOqXARAf1IL8P4gJaga7LRQ/67U=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-9Hz+7Q4i5baIWxVIo6e8d5isvZWnJW2947q5Uk0Gm9w=";
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir $out
|
|
install -m0644 dist/restriction-card.js $out
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
changelog = "https://github.com/iantrich/restriction-card/releases/tag/${finalAttrs.src.tag}";
|
|
description = "Apply restrictions to Lovelace cards";
|
|
homepage = "https://github.com/iantrich/restriction-card";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ jfly ];
|
|
};
|
|
})
|