Allow to use TYPO3 documentation rendering on both systems
I use docker on hikari2 and podman on hikari. I now change the bash script based on that.
This commit is contained in:
parent
776c6cb8d1
commit
0b451f07a9
2
home.nix
2
home.nix
|
@ -32,7 +32,7 @@ in {
|
|||
stateVersion = "22.05";
|
||||
|
||||
packages = import ./home/packages.nix {
|
||||
inherit pkgs;
|
||||
inherit pkgs ownLib;
|
||||
};
|
||||
|
||||
file = import ./home/files.nix { };
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs }:
|
||||
{ pkgs, ownLib }:
|
||||
|
||||
with pkgs; [
|
||||
nix
|
||||
|
@ -20,7 +20,9 @@ with pkgs; [
|
|||
(callPackage ./packages/custom/backup { })
|
||||
(callPackage ./packages/custom/nextcloud-sync/from-local.nix { })
|
||||
(callPackage ./packages/custom/nextcloud-sync/from-remote.nix { })
|
||||
(callPackage ./packages/custom/typo3-documentation-rendering { })
|
||||
(callPackage ./packages/custom/typo3-documentation-rendering {
|
||||
inherit ownLib;
|
||||
})
|
||||
(callPackage ./packages/custom/build-phpactor { })
|
||||
i3blocks
|
||||
st
|
||||
|
|
|
@ -1,22 +1,27 @@
|
|||
{
|
||||
writeShellApplication,
|
||||
ownLib,
|
||||
podman
|
||||
}:
|
||||
|
||||
writeShellApplication {
|
||||
let
|
||||
usePodman = ownLib.onHikari {};
|
||||
runner = if usePodman then "podman" else "docker";
|
||||
image = (if usePodman then "podman" else "") + "t3docs/render-documentation:latest";
|
||||
runtimeInputs = if usePodman then [ podman ] else [ ];
|
||||
|
||||
in writeShellApplication {
|
||||
name = "custom-typo3-render-documentation";
|
||||
|
||||
runtimeInputs = [
|
||||
podman
|
||||
];
|
||||
inherit runtimeInputs;
|
||||
|
||||
# See: https://t3docs.github.io/DRC-The-Docker-Rendering-Container/07-To-be-sorted/quickstart.html#build-html-with-plain-docker-commands
|
||||
text = ''
|
||||
podman \
|
||||
${runner} \
|
||||
run --rm \
|
||||
-v "$(pwd)":/PROJECT:ro \
|
||||
-v "$(pwd)/Documentation-GENERATED-temp":/RESULT \
|
||||
docker.io/t3docs/render-documentation:latest \
|
||||
${image} \
|
||||
makehtml
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue