Skip to content

Instantly share code, notes, and snippets.

@WhittlesJr
Created November 24, 2018 03:32
Show Gist options
  • Save WhittlesJr/aebb9a9005cbde9cbaf13e3826e23c7e to your computer and use it in GitHub Desktop.
Save WhittlesJr/aebb9a9005cbde9cbaf13e3826e23c7e to your computer and use it in GitHub Desktop.
{ stdenv, fetchFromGitHub }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "hass-custom-alarm-${version}";
version = "1.3.1";
src = fetchFromGitHub {
owner = "gazoscalvertos";
repo = "Hass-Custom-Alarm";
rev = "v${version}";
sha256 = "1xlwsyg45kmvx3gvkv7k5imbhkxan0s573lalkcqcflf078w7555";
};
dontInstall = true;
unpackPhase = ''
mkdir $out
cp -r * $out/.
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment