tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
cuneiform: make install path match rpath; fix runtime
annalee
2 years ago
3c3ba95e
09ec6a08
+16
-3
1 changed file
expand all
collapse all
unified
split
pkgs
tools
graphics
cuneiform
default.nix
+16
-3
pkgs/tools/graphics/cuneiform/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, cmake, imagemagick }:
1
1
+
{ lib, stdenv, fetchurl, cmake, imagemagick, testers }:
2
2
3
3
-
stdenv.mkDerivation {
3
3
+
stdenv.mkDerivation (finalAttrs: {
4
4
pname = "cuneiform";
5
5
version = "1.1.0";
6
6
···
30
30
rm cuneiform_src/Kern/hhh/tigerh/h/strings.h
31
31
'';
32
32
33
33
+
# make the install path match the rpath
34
34
+
postInstall = ''
35
35
+
if [[ -d ''${!outputLib}/lib64 ]]; then
36
36
+
mv ''${!outputLib}/lib64 ''${!outputLib}/lib
37
37
+
ln -s lib ''${!outputLib}/lib64
38
38
+
fi
39
39
+
'';
40
40
+
33
41
buildInputs = [ imagemagick ];
34
42
35
43
nativeBuildInputs = [ cmake ];
36
44
45
45
+
passthru.tests = testers.testVersion {
46
46
+
package = finalAttrs.finalPackage;
47
47
+
command = "cuneiform";
48
48
+
};
49
49
+
37
50
meta = with lib; {
38
51
description = "Multi-language OCR system";
39
52
homepage = "https://launchpad.net/cuneiform-linux";
···
42
55
maintainers = [ maintainers.raskin ];
43
56
mainProgram = "cuneiform";
44
57
};
45
45
-
}
58
58
+
})