From 57af39129bb5a65946344349a66da03a7fbe2c11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannik=20R=C3=B6del?= Date: Wed, 20 Oct 2021 10:27:05 +0200 Subject: [PATCH] pdftoipe: init at 7.2.24.1 --- pkgs/tools/graphics/pdftoipe/default.nix | 33 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/tools/graphics/pdftoipe/default.nix diff --git a/pkgs/tools/graphics/pdftoipe/default.nix b/pkgs/tools/graphics/pdftoipe/default.nix new file mode 100644 index 000000000000..950e82e38657 --- /dev/null +++ b/pkgs/tools/graphics/pdftoipe/default.nix @@ -0,0 +1,33 @@ +{ lib +, stdenv +, fetchFromGitHub +, pkg-config +, poppler +}: + +stdenv.mkDerivation rec { + pname = "pdftoipe"; + version = "7.2.24.1"; + + src = fetchFromGitHub { + owner = "otfried"; + repo = "ipe-tools"; + rev = "v${version}"; + sha256 = "jlrjrjzZQo79CKMySayhCm1dqLh89wOQuXrXa2aqc0k="; + }; + sourceRoot = "source/pdftoipe"; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ poppler ]; + + installPhase = '' + install -D pdftoipe $out/bin/pdftoipe + ''; + + meta = with lib; { + description = "A program that tries to convert arbitrary PDF documents to Ipe files"; + homepage = "https://github.com/otfried/ipe-tools"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ yrd ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5071d0567a3b..62ef0cf748b1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8315,6 +8315,8 @@ with pkgs; pdf2svg = callPackage ../tools/graphics/pdf2svg { }; + pdftoipe = callPackage ../tools/graphics/pdftoipe { }; + fmodex = callPackage ../games/zandronum/fmod.nix { }; pdfminer = with python3Packages; toPythonApplication pdfminer;