mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-04-20 11:34:07 +02:00
split out wordpress packages
This commit is contained in:
parent
c1c28ce103
commit
a9cab02ee7
2 changed files with 102 additions and 78 deletions
|
@ -17,4 +17,102 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
nixos-anywhere = inputs.nixos-anywhere.packages.${system}.nixos-anywhere;
|
nixos-anywhere = inputs.nixos-anywhere.packages.${system}.nixos-anywhere;
|
||||||
|
|
||||||
|
madara = pkgs.stdenv.mkDerivation rec {
|
||||||
|
name = "madara";
|
||||||
|
version = "1.7.4.1";
|
||||||
|
src = pkgs.requireFile {
|
||||||
|
name = "madara-${version}.zip";
|
||||||
|
url = "https://mangabooth.com/";
|
||||||
|
hash = "sha256-JxfjZLoN6I9twAQMT60Q27CgJg22G7zEU5GDra9rROs=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.unzip
|
||||||
|
];
|
||||||
|
installPhase = "mkdir -p $out; cp -R * $out/";
|
||||||
|
};
|
||||||
|
madara-child = pkgs.stdenv.mkDerivation rec {
|
||||||
|
name = "madara-child";
|
||||||
|
version = "1.0.3";
|
||||||
|
src = pkgs.requireFile {
|
||||||
|
name = "madara-child-${version}.zip";
|
||||||
|
url = "https://mangabooth.com/";
|
||||||
|
hash = "sha256-h9w2TmX1nXaoP27b9DQ1jf6z1hTS5+BWtlz+Fprk5dQ=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.unzip
|
||||||
|
];
|
||||||
|
unpackPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
unzip $src "madara-child/*" -d $out
|
||||||
|
'';
|
||||||
|
installPhase = "mv $out/madara-child/* $out";
|
||||||
|
};
|
||||||
|
madara-core = pkgs.stdenv.mkDerivation rec {
|
||||||
|
name = "madara-core";
|
||||||
|
version = "1.7.4.1";
|
||||||
|
src = pkgs.requireFile {
|
||||||
|
name = "madara-core-${version}.zip";
|
||||||
|
url = "https://mangabooth.com/";
|
||||||
|
hash = "sha256-r22hGCDlVeYTOFlhfKoc3r4TtpZExJ2E2QP9ssRoJco=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.unzip
|
||||||
|
];
|
||||||
|
installPhase = "mkdir -p $out; cp -R * $out/";
|
||||||
|
};
|
||||||
|
madara-shortcodes = pkgs.stdenv.mkDerivation rec {
|
||||||
|
name = "madara-shortcodes";
|
||||||
|
version = "1.5.5.9";
|
||||||
|
src = pkgs.requireFile {
|
||||||
|
name = "madara-shortcodes-${version}.zip";
|
||||||
|
url = "https://mangabooth.com/";
|
||||||
|
hash = "sha256-IW7C5DTzvt3ROFpfB21LY2wmdR45lNj9c8/THHCi6eY=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.unzip
|
||||||
|
];
|
||||||
|
unpackPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
unzip $src "madara-shortcodes/*" -d $out
|
||||||
|
'';
|
||||||
|
installPhase = "mv $out/madara-shortcodes/* $out";
|
||||||
|
};
|
||||||
|
option-tree-lean = pkgs.stdenv.mkDerivation rec {
|
||||||
|
name = "option-tree-lean";
|
||||||
|
version = "0";
|
||||||
|
src = pkgs.requireFile {
|
||||||
|
name = "option-tree-lean.zip";
|
||||||
|
url = "https://mangabooth.com/";
|
||||||
|
hash = "sha256-9u+MGdOarNdLtARWiJpw/hsMR9X8r0h5qugGir+amUI=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.unzip
|
||||||
|
];
|
||||||
|
installPhase = "mkdir -p $out; cp -R * $out/";
|
||||||
|
};
|
||||||
|
option-tree = pkgs.stdenv.mkDerivation rec {
|
||||||
|
name = "option-tree";
|
||||||
|
version = "2.7.3";
|
||||||
|
src = pkgs.fetchzip {
|
||||||
|
url = "https://downloads.wordpress.org/plugin/option-tree.zip";
|
||||||
|
hash = "sha256-+dPt8qJ4rkmSKrIXX5IiWO4zkFkR+Uapjlbx1g7KzKs=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.unzip
|
||||||
|
];
|
||||||
|
installPhase = "mkdir -p $out; cp -R * $out/";
|
||||||
|
};
|
||||||
|
widget-logic = pkgs.stdenv.mkDerivation rec {
|
||||||
|
name = "widget-logic";
|
||||||
|
version = "5.10.4";
|
||||||
|
src = pkgs.fetchzip {
|
||||||
|
url = "https://downloads.wordpress.org/plugin/widget-logic.zip";
|
||||||
|
hash = "sha256-J2NOth3q+IaPVhFT97arsNfjUPyTZF4Vvin1Cb+xnKw=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkgs.unzip
|
||||||
|
];
|
||||||
|
installPhase = "mkdir -p $out; cp -R * $out/";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{config, pkgs, ...}:
|
{config, pkgs, self, ...}:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
@ -57,83 +57,7 @@
|
||||||
max_input_time = 300
|
max_input_time = 300
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.wordpress.sites."test.missing.ninja" =
|
services.wordpress.sites."test.missing.ninja" = with self.packages.${nixpkgs.hostPlatform.system}; {
|
||||||
let
|
|
||||||
madara = pkgs.stdenv.mkDerivation rec {
|
|
||||||
name = "madara";
|
|
||||||
version = "1.7.4.1";
|
|
||||||
src = pkgs.requireFile {
|
|
||||||
name = "madara-${version}.zip";
|
|
||||||
url = "https://mangabooth.com/";
|
|
||||||
hash = "sha256-JxfjZLoN6I9twAQMT60Q27CgJg22G7zEU5GDra9rROs=";
|
|
||||||
};
|
|
||||||
nativeBuildInputs = [
|
|
||||||
pkgs.unzip
|
|
||||||
];
|
|
||||||
installPhase = "mkdir -p $out; cp -R * $out/";
|
|
||||||
};
|
|
||||||
madara-child = pkgs.stdenv.mkDerivation rec {
|
|
||||||
name = "madara-child";
|
|
||||||
version = "1.0.3";
|
|
||||||
src = pkgs.requireFile {
|
|
||||||
name = "madara-child-${version}.zip";
|
|
||||||
url = "https://mangabooth.com/";
|
|
||||||
hash = "sha256-h9w2TmX1nXaoP27b9DQ1jf6z1hTS5+BWtlz+Fprk5dQ=";
|
|
||||||
};
|
|
||||||
nativeBuildInputs = [
|
|
||||||
pkgs.unzip
|
|
||||||
];
|
|
||||||
unpackPhase = ''
|
|
||||||
mkdir -p $out
|
|
||||||
unzip $src "madara-child/*" -d $out
|
|
||||||
'';
|
|
||||||
installPhase = "mkdir -p $out; cp -R * $out/";
|
|
||||||
};
|
|
||||||
madara-core = pkgs.stdenv.mkDerivation rec {
|
|
||||||
name = "madara-core";
|
|
||||||
version = "1.7.4.1";
|
|
||||||
src = pkgs.requireFile {
|
|
||||||
name = "madara-core-${version}.zip";
|
|
||||||
url = "https://mangabooth.com/";
|
|
||||||
hash = "sha256-r22hGCDlVeYTOFlhfKoc3r4TtpZExJ2E2QP9ssRoJco=";
|
|
||||||
};
|
|
||||||
nativeBuildInputs = [
|
|
||||||
pkgs.unzip
|
|
||||||
];
|
|
||||||
installPhase = "mkdir -p $out; cp -R * $out/";
|
|
||||||
};
|
|
||||||
madara-shortcodes = pkgs.stdenv.mkDerivation rec {
|
|
||||||
name = "madara-shortcodes";
|
|
||||||
version = "1.5.5.9";
|
|
||||||
src = pkgs.requireFile {
|
|
||||||
name = "madara-shortcodes-${version}.zip";
|
|
||||||
url = "https://mangabooth.com/";
|
|
||||||
hash = "sha256-IW7C5DTzvt3ROFpfB21LY2wmdR45lNj9c8/THHCi6eY=";
|
|
||||||
};
|
|
||||||
nativeBuildInputs = [
|
|
||||||
pkgs.unzip
|
|
||||||
];
|
|
||||||
unpackPhase = ''
|
|
||||||
mkdir -p $out
|
|
||||||
unzip $src "madara-shortcodes/*" -d $out
|
|
||||||
'';
|
|
||||||
installPhase = "mkdir -p $out; cp -R * $out/";
|
|
||||||
};
|
|
||||||
option-tree-lean = pkgs.stdenv.mkDerivation rec {
|
|
||||||
name = "option-tree-lean";
|
|
||||||
version = "0";
|
|
||||||
src = pkgs.requireFile {
|
|
||||||
name = "option-tree-lean.zip";
|
|
||||||
url = "https://mangabooth.com/";
|
|
||||||
hash = "sha256-9u+MGdOarNdLtARWiJpw/hsMR9X8r0h5qugGir+amUI=";
|
|
||||||
};
|
|
||||||
nativeBuildInputs = [
|
|
||||||
pkgs.unzip
|
|
||||||
];
|
|
||||||
installPhase = "mkdir -p $out; cp -R * $out/";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
themes = [
|
themes = [
|
||||||
madara
|
madara
|
||||||
madara-child
|
madara-child
|
||||||
|
@ -142,7 +66,9 @@
|
||||||
plugins = [
|
plugins = [
|
||||||
madara-core
|
madara-core
|
||||||
madara-shortcodes
|
madara-shortcodes
|
||||||
|
option-tree
|
||||||
option-tree-lean
|
option-tree-lean
|
||||||
|
widget-logic
|
||||||
];
|
];
|
||||||
settings = {
|
settings = {
|
||||||
FORCE_SSL_ADMIN = true;
|
FORCE_SSL_ADMIN = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue