1
1
{ stdenv , lib , makeWrapper , fetchFromGitHub
2
2
, bc , coreutils , file , gawk , ghostscript , gnused , imagemagick , zip } :
3
3
4
- stdenv . mkDerivation rec {
5
- version = "2014-12-17" ;
6
- name = "pdf2odt-${ version } " ;
7
-
8
- src = fetchFromGitHub {
9
- owner = "gutschke" ;
10
- repo = "pdf2odt" ;
11
- rev = "master" ;
12
- sha256 = "14f9r5f0g6jzanl54jv86ls0frvspka1p9c8dy3fnriqpm584j0r" ;
13
- } ;
14
-
15
- dontStrip = true ;
16
-
17
- nativeBuildInputs = [ makeWrapper ] ;
18
-
4
+ let
19
5
path = lib . makeBinPath [
20
6
bc
21
7
coreutils
@@ -27,24 +13,36 @@ stdenv.mkDerivation rec {
27
13
zip
28
14
] ;
29
15
16
+ in stdenv . mkDerivation rec {
17
+ name = "pdf2odt-${ version } " ;
18
+ version = "20170207" ;
19
+
20
+ src = fetchFromGitHub {
21
+ owner = "gutschke" ;
22
+ repo = "pdf2odt" ;
23
+ rev = "4533bd14306c30c085001db59dbb8114ea09c360" ;
24
+ sha256 = "14f9r5f0g6jzanl54jv86ls0frvspka1p9c8dy3fnriqpm584j0r" ;
25
+ } ;
26
+
27
+ nativeBuildInputs = [ makeWrapper ] ;
28
+
30
29
patches = [ ./use_mktemp.patch ] ;
31
30
32
31
installPhase = ''
33
- mkdir -p $out/bin $out/share/doc
32
+ install -Dm0755 pdf2odt -t $out/bin
33
+ install -Dm0644 README.md LICENSE -t $out/share/doc/pdf2odt
34
34
35
- install -m0755 pdf2odt $out/bin/pdf2odt
36
35
ln -rs $out/bin/pdf2odt $out/bin/pdf2ods
37
36
38
- install -m0644 README.md LICENSE -t $out/share/doc
39
-
40
- wrapProgram $out/bin/pdf2odt --prefix PATH : ${ path }
37
+ wrapProgram $out/bin/pdf2odt \
38
+ --prefix PATH : ${ path }
41
39
'' ;
42
40
43
41
meta = with stdenv . lib ; {
44
42
description = "PDF to ODT format converter" ;
45
- homepage = http://github.com/gutschke/pdf2odt ;
46
- license = licenses . mit ;
47
- platforms = platforms . all ;
43
+ homepage = http://github.com/gutschke/pdf2odt ;
44
+ license = licenses . mit ;
45
+ platforms = platforms . all ;
48
46
maintainers = with maintainers ; [ peterhoeg ] ;
49
47
inherit version ;
50
48
} ;
0 commit comments