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 { }; }