diff --git a/pkgs/default.nix b/pkgs/default.nix index a0e7d62..6127c7a 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -7,4 +7,6 @@ { name = "porkbun"; repo = "github.com/caddy-dns/porkbun"; version = "v0.1.4"; } ]; }; + + witchhazel-helix = pkgs.callPackage ./witchhazel-helix.nix {}; } diff --git a/pkgs/witchhazel-helix.nix b/pkgs/witchhazel-helix.nix new file mode 100644 index 0000000..8fc42a9 --- /dev/null +++ b/pkgs/witchhazel-helix.nix @@ -0,0 +1,27 @@ +{ lib +, fetchFromGitHub +, stdenvNoCC +}: +stdenvNoCC.mkDerivation rec { + pname = "witchhazel-helix"; + version = "0-unstable-2024-01-26"; + + src = fetchFromGitHub { + owner = "theacodes"; + repo = "witchhazel"; + rev = "5f4d7d76f0ece83ca1cb8791a852a3e8dc32f728"; + hash = "sha256-k95ZA/6mCqXmEmYfqHg1HRXxCrHo/eO68PBurEq11RA="; + }; + + installPhase = '' + runHook preInstall + mkdir $out + install -Dm644 helix/*.toml $out/ + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://witchhazel.thea.codes/"; + license = licenses.asl20; + }; +} \ No newline at end of file