mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
08eee7bd7a
So we don't need to manually maintain `pkgs/servers/home-assistant/custom-components/default.nix` anymore
32 lines
757 B
Nix
32 lines
757 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildHomeAssistantComponent,
|
|
}:
|
|
|
|
buildHomeAssistantComponent rec {
|
|
owner = "nielsfaber";
|
|
domain = "alarmo";
|
|
version = "1.10.4";
|
|
|
|
postInstall = ''
|
|
cd $out/custom_components/alarmo/frontend
|
|
ls . | grep -v dist | xargs rm -rf
|
|
'';
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nielsfaber";
|
|
repo = "alarmo";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-/hNzGPckLHUX0mrBF3ugAXstrOc1mWdati+nRJCwldc=";
|
|
};
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/nielsfaber/alarmo/releases/tag/v${version}";
|
|
description = "Alarm System for Home Assistant";
|
|
homepage = "https://github.com/nielsfaber/alarmo";
|
|
maintainers = with maintainers; [ mindstorms6 ];
|
|
license = licenses.unfree;
|
|
};
|
|
}
|