From c55f97b61669e98de56493d18d968944a2af8d0b Mon Sep 17 00:00:00 2001 From: Sebastian Sellmeier Date: Sun, 16 Apr 2023 21:47:04 +0200 Subject: [PATCH] publii: init at 0.42.1 --- pkgs/development/web/publii/default.nix | 102 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 104 insertions(+) create mode 100644 pkgs/development/web/publii/default.nix diff --git a/pkgs/development/web/publii/default.nix b/pkgs/development/web/publii/default.nix new file mode 100644 index 000000000000..58713b35a353 --- /dev/null +++ b/pkgs/development/web/publii/default.nix @@ -0,0 +1,102 @@ +{ stdenv +, lib +, fetchurl +, autoPatchelfHook +, makeShellWrapper +, wrapGAppsHook +, alsa-lib +, at-spi2-atk +, at-spi2-core +, atk +, cairo +, cups +, dbus +, expat +, glib +, gtk3 +, libsecret +, mesa +, nss +, pango +, udev +, xdg-utils +, xorg +}: + +stdenv.mkDerivation rec { + pname = "publii"; + version = "0.42.1"; + + src = fetchurl { + url = "https://getpublii.com/download/Publii-${version}.deb"; + hash = "sha256-GHGXu/z2L4aJG1O1THPIxnRBdPJOIVuQsZP0zhjTZlo="; + }; + + dontConfigure = true; + dontBuild = true; + dontWrapGApps = true; + + nativeBuildInputs = [ + autoPatchelfHook + makeShellWrapper + wrapGAppsHook + ]; + + buildInputs = [ + alsa-lib + at-spi2-atk + at-spi2-core + atk + cairo + cups + dbus + expat + glib + gtk3 + libsecret + mesa + nss + pango + xorg.libX11 + xorg.libxcb + ]; + + unpackPhase = '' + ar p $src data.tar.xz | tar xJ + ''; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + + mv usr/share $out + substituteInPlace $out/share/applications/Publii.desktop \ + --replace 'Exec=/opt/Publii/Publii' 'Exec=Publii' + + mv opt $out + + runHook postInstall + ''; + + preFixup = '' + makeWrapper $out/opt/Publii/Publii $out/bin/Publii \ + "''${gappsWrapperArgs[@]}" \ + --suffix PATH : ${lib.makeBinPath [ xdg-utils ]} \ + --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ udev ]} + ''; + + meta = with lib; { + description = "Static Site CMS with GUI to build privacy-focused SEO-friendly website."; + longDescription = '' + Creating a website doesn't have to be complicated or expensive. With Publii, the most + intuitive static site CMS, you can create a beautiful, safe, and privacy-friendly website + quickly and easily; perfect for anyone who wants a fast, secure website in a flash. + ''; + homepage = "https://getpublii.com"; + changelog = "https://github.com/getpublii/publii/releases/tag/v${version}"; + license = licenses.gpl3Only; + maintainers = with lib.maintainers; [ urandom sebtm ]; + platforms = [ "x86_64-linux" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ac013888f76c..f2761707a492 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17330,6 +17330,8 @@ with pkgs; protege-distribution = callPackage ../development/web/protege-distribution { }; + publii = callPackage ../development/web/publii {}; + umr = callPackage ../development/misc/umr { llvmPackages = llvmPackages_latest; };