Unverified Commit 7e3bb39f authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

pdfslicer: drop (#503805)

parents bb9719cb 434e1270
Loading
Loading
Loading
Loading
+0 −70
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  gettext,
  intltool,
  pkg-config,
  wrapGAppsHook3,
  gtkmm3,
  libuuid,
  poppler,
  qpdf,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "pdfslicer";
  version = "1.8.8";

  src = fetchFromGitHub {
    owner = "junrrein";
    repo = "pdfslicer";
    tag = "v${finalAttrs.version}";
    fetchSubmodules = true;
    sha256 = "0sja0ddd9c8wjjpzk2ag8q1lxpj09adgmhd7wnsylincqnj2jyls";
  };

  postPatch = ''
    # Don't build tests, vendored catch doesn't build with latest glibc.
    substituteInPlace CMakeLists.txt \
      --replace "add_subdirectory (tests)" ""

    # Replace deprecated and now unsupported old cmake version
    # https://github.com/NixOS/nixpkgs/issues/445447

    substituteInPlace third-party/fmtlib/CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 3.1.0)" \
        "cmake_minimum_required(VERSION 3.10)"
    substituteInPlace third-party/GSL/CMakeLists.txt \
      --replace-fail "cmake_minimum_required(VERSION 3.1.3)" \
        "cmake_minimum_required(VERSION 3.10)"
  '';

  nativeBuildInputs = [
    cmake
    gettext
    intltool
    pkg-config
    wrapGAppsHook3
  ];

  buildInputs = [
    gtkmm3
    libuuid
    poppler
    qpdf
  ];

  env = lib.optionalAttrs (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "13") {
    # Pending upstream compatibility with GCC 13
    CXXFLAGS = "-Wno-changes-meaning";
  };

  meta = {
    description = "Simple application to extract, merge, rotate and reorder pages of PDF documents";
    homepage = "https://junrrein.github.io/pdfslicer/";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
})
+0 −2
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@
  # for passthru.tests
  cups-filters,
  pdfmixtool,
  pdfslicer,
  python3,
  testers,
  versionCheckHook,
@@ -80,7 +79,6 @@ stdenv.mkDerivation (finalAttrs: {
    inherit
      cups-filters
      pdfmixtool
      pdfslicer
      ;
  };

+0 −2
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@
  gdal,
  gegl,
  inkscape,
  pdfslicer,
  scribus,
  vips,
  testers,
@@ -168,7 +167,6 @@ stdenv.mkDerivation (finalAttrs: {

      inherit
        gegl
        pdfslicer
        vips
        ;
      gdal = gdal.override { usePoppler = true; };
+1 −0
Original line number Diff line number Diff line
@@ -1546,6 +1546,7 @@ mapAliases {
  pcsctools = throw "'pcsctools' has been renamed to/replaced by 'pcsc-tools'"; # Converted to throw 2025-10-27
  pdf2djvu = throw "pdf2djvu has been removed because it was broken and archived upstream"; # added 2025-12-06
  pdf4tcl = throw "'pdf4tcl' has been renamed to/replaced by 'tclPackages.pdf4tcl'"; # Converted to throw 2025-10-27
  pdfslicer = throw "'pdfslicer' has been removed because it was broken and abandoned upstream"; # added 2026-03-26
  pds = warnAlias "'pds' has been renamed to 'bluesky-pds'" bluesky-pds; # Added 2025-08-20
  pdsadmin = warnAlias "'pdsadmin' has been renamed to 'bluesky-pdsadmin'" bluesky-pdsadmin; # Added 2025-08-20
  peach = throw "'peach' has been renamed to/replaced by 'asouldocs'"; # Converted to throw 2025-10-27