mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #272491 from a-n-n-a-l-e-e/cuneiform
cuneiform: make install path match rpath; fix runtime
This commit is contained in:
commit
e4e2af6d11
@ -1,6 +1,6 @@
|
||||
{ lib, stdenv, fetchurl, cmake, imagemagick }:
|
||||
{ lib, stdenv, fetchurl, cmake, imagemagick, testers }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "cuneiform";
|
||||
version = "1.1.0";
|
||||
|
||||
@ -30,10 +30,23 @@ stdenv.mkDerivation {
|
||||
rm cuneiform_src/Kern/hhh/tigerh/h/strings.h
|
||||
'';
|
||||
|
||||
# make the install path match the rpath
|
||||
postInstall = ''
|
||||
if [[ -d ''${!outputLib}/lib64 ]]; then
|
||||
mv ''${!outputLib}/lib64 ''${!outputLib}/lib
|
||||
ln -s lib ''${!outputLib}/lib64
|
||||
fi
|
||||
'';
|
||||
|
||||
buildInputs = [ imagemagick ];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
passthru.tests = testers.testVersion {
|
||||
package = finalAttrs.finalPackage;
|
||||
command = "cuneiform";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Multi-language OCR system";
|
||||
homepage = "https://launchpad.net/cuneiform-linux";
|
||||
@ -42,4 +55,4 @@ stdenv.mkDerivation {
|
||||
maintainers = [ maintainers.raskin ];
|
||||
mainProgram = "cuneiform";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user