gimpPlugins.fourier: fix loading
Turns out there was a pre-compiled binary in the tarball, which was installed instead of building our own binary. That means RPATH was not set properly, and the plug-in could not find libgimp.
This commit is contained in:
parent
ed6ccd4b27
commit
7ec9410c6a
@ -83,15 +83,28 @@ in
|
|||||||
Filters/Generic/FFT Forward
|
Filters/Generic/FFT Forward
|
||||||
Filters/Generic/FFT Inverse
|
Filters/Generic/FFT Inverse
|
||||||
*/
|
*/
|
||||||
name = "fourier-0.4.3";
|
pname = "fourier";
|
||||||
buildInputs = with pkgs; [ fftw ];
|
version = "0.4.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.lprp.fr/files/old-web/soft/gimp/${name}.tar.gz";
|
url = "https://www.lprp.fr/files/old-web/soft/gimp/${pname}-${version}.tar.gz";
|
||||||
sha256 = "0mf7f8vaqs2madx832x3kcxw3hv3w3wampvzvaps1mkf2kvrjbsn";
|
sha256 = "0mf7f8vaqs2madx832x3kcxw3hv3w3wampvzvaps1mkf2kvrjbsn";
|
||||||
};
|
};
|
||||||
|
|
||||||
installPhase = "installPlugins fourier";
|
buildInputs = with pkgs; [ fftw ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# The tarball contains a prebuilt binary.
|
||||||
|
make clean
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
installPlugins fourier
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "GIMP plug-in to do the fourier transform";
|
description = "GIMP plug-in to do the fourier transform";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user