From 7c8d811bef59843d9e260b5c4126410b4ec432fa Mon Sep 17 00:00:00 2001 From: Tomo <68489118+tomodachi94@users.noreply.github.com> Date: Tue, 16 Apr 2024 12:35:51 -0700 Subject: [PATCH] pkgs/hugo-bearblog: import Permalink: https://github.com/tomodachi94/tomopkgs/blob/61d2af61415a60997e10ac62a85b66ee1dbff4a6/pkgs/hugo-bearblog/default.nix Ref: 61d2af61415a60997e10ac62a85b66ee1dbff4a6 --- pkgs/all/hugo-bearblog.nix | 18 ++++++++++++++++++ pkgs/default.nix | 1 + 2 files changed, 19 insertions(+) create mode 100644 pkgs/all/hugo-bearblog.nix diff --git a/pkgs/all/hugo-bearblog.nix b/pkgs/all/hugo-bearblog.nix new file mode 100644 index 0000000..414f6d8 --- /dev/null +++ b/pkgs/all/hugo-bearblog.nix @@ -0,0 +1,18 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation rec { + pname = "hugo-bearblog"; + version = "2024-01-23"; + src = fetchFromGitHub { + owner = "janraasch"; + repo = "hugo-bearblog"; + rev = "0b64d5ad103c716da5a79b48855f1489f6738ba7"; + hash = "sha256-cyMWdCIZJV6zyIEgg3jbPV1BfDO4eRUY8pP6PmDfY6Y="; + }; + phases = [ "installPhase" ]; + installPhase = '' + mkdir $out + cp $src/theme.toml $out + cp -r $src/layouts $out + cp -r $src/archetypes $out + ''; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index 090b451..c529834 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -5,4 +5,5 @@ in { awesome-lint = cp ./all/awesome-lint { }; developercolorpicker = cp ./darwin/developercolorpicker.nix { }; + hugo-bearblog = cp ./all/hugo-bearblog.nix { }; }