lol

pdf2odt: use resholvePackage

authored by

Travis A. Everett and committed by
Peter Hoeg
9363ec25 9783ef30

+32 -20
+32 -20
pkgs/tools/typesetting/pdf2odt/default.nix
··· 1 - { stdenv, lib, makeWrapper, fetchFromGitHub 2 - , bc, coreutils, file, gawk, ghostscript, gnused, imagemagick, zip }: 3 - 4 - let 5 - path = lib.makeBinPath [ 6 - bc 7 - coreutils 8 - file 9 - gawk 10 - ghostscript 11 - gnused 12 - imagemagick 13 - zip 14 - ]; 1 + { lib 2 + , resholvePackage 3 + , fetchFromGitHub 4 + , bc 5 + , coreutils 6 + , file 7 + , gawk 8 + , ghostscript 9 + , gnused 10 + , imagemagick 11 + , zip 12 + , bash 13 + , findutils 14 + }: 15 15 16 - in stdenv.mkDerivation rec { 16 + resholvePackage rec { 17 17 pname = "pdf2odt"; 18 18 version = "20170207"; 19 19 ··· 24 24 sha256 = "14f9r5f0g6jzanl54jv86ls0frvspka1p9c8dy3fnriqpm584j0r"; 25 25 }; 26 26 27 - nativeBuildInputs = [ makeWrapper ]; 28 - 29 27 patches = [ ./use_mktemp.patch ]; 30 28 31 29 installPhase = '' ··· 33 31 install -Dm0644 README.md LICENSE -t $out/share/doc/pdf2odt 34 32 35 33 ln -rs $out/bin/pdf2odt $out/bin/pdf2ods 36 - 37 - wrapProgram $out/bin/pdf2odt \ 38 - --prefix PATH : ${path} 39 34 ''; 35 + solutions = { 36 + default = { 37 + scripts = [ "bin/pdf2odt" ]; 38 + interpreter = "${bash}/bin/bash"; 39 + inputs = [ 40 + coreutils 41 + bc 42 + file 43 + imagemagick 44 + gawk 45 + gnused 46 + ghostscript 47 + zip 48 + findutils 49 + ]; 50 + }; 51 + }; 40 52 41 53 meta = with lib; { 42 54 description = "PDF to ODT format converter";