mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, gettext
|
|
, intltool
|
|
, pkg-config
|
|
, wrapGAppsHook3
|
|
, gtkmm3
|
|
, libuuid
|
|
, poppler
|
|
, qpdf
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pdfslicer";
|
|
version = "1.8.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "junrrein";
|
|
repo = "pdfslicer";
|
|
rev = "v${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)" ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
gettext
|
|
intltool
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
gtkmm3
|
|
libuuid
|
|
poppler
|
|
qpdf
|
|
];
|
|
|
|
CXXFLAGS =
|
|
# Pending upstream compatibility with GCC 13
|
|
lib.optional (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "13") "-Wno-changes-meaning";
|
|
|
|
meta = with lib; {
|
|
description = "Simple application to extract, merge, rotate and reorder pages of PDF documents";
|
|
homepage = "https://junrrein.github.io/pdfslicer/";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|