mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
pdf2odt: use resholvePackage
This commit is contained in:
parent
9783ef308d
commit
9363ec256d
@ -1,19 +1,19 @@
|
||||
{ stdenv, lib, makeWrapper, fetchFromGitHub
|
||||
, bc, coreutils, file, gawk, ghostscript, gnused, imagemagick, zip }:
|
||||
{ lib
|
||||
, resholvePackage
|
||||
, fetchFromGitHub
|
||||
, bc
|
||||
, coreutils
|
||||
, file
|
||||
, gawk
|
||||
, ghostscript
|
||||
, gnused
|
||||
, imagemagick
|
||||
, zip
|
||||
, bash
|
||||
, findutils
|
||||
}:
|
||||
|
||||
let
|
||||
path = lib.makeBinPath [
|
||||
bc
|
||||
coreutils
|
||||
file
|
||||
gawk
|
||||
ghostscript
|
||||
gnused
|
||||
imagemagick
|
||||
zip
|
||||
];
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
resholvePackage rec {
|
||||
pname = "pdf2odt";
|
||||
version = "20170207";
|
||||
|
||||
@ -24,8 +24,6 @@ in stdenv.mkDerivation rec {
|
||||
sha256 = "14f9r5f0g6jzanl54jv86ls0frvspka1p9c8dy3fnriqpm584j0r";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
patches = [ ./use_mktemp.patch ];
|
||||
|
||||
installPhase = ''
|
||||
@ -33,10 +31,24 @@ in stdenv.mkDerivation rec {
|
||||
install -Dm0644 README.md LICENSE -t $out/share/doc/pdf2odt
|
||||
|
||||
ln -rs $out/bin/pdf2odt $out/bin/pdf2ods
|
||||
|
||||
wrapProgram $out/bin/pdf2odt \
|
||||
--prefix PATH : ${path}
|
||||
'';
|
||||
solutions = {
|
||||
default = {
|
||||
scripts = [ "bin/pdf2odt" ];
|
||||
interpreter = "${bash}/bin/bash";
|
||||
inputs = [
|
||||
coreutils
|
||||
bc
|
||||
file
|
||||
imagemagick
|
||||
gawk
|
||||
gnused
|
||||
ghostscript
|
||||
zip
|
||||
findutils
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "PDF to ODT format converter";
|
||||
|
Loading…
Reference in New Issue
Block a user