WIP: fbv builds, but seems not to work.
@@ -7,6 +7,8 @@ stdenv.mkDerivation {
inherit version;
name = "fbv";
+ # Hmm, their library detection seems screwy.
+ # This is why I need to repeat both sets.
buildInputs = [
libpng
libjpeg
@@ -14,6 +16,25 @@ stdenv.mkDerivation {
getopt
];
+ nativeBuildInputs = [
+ libpng
+ libjpeg
+ libungif
+ getopt
+ ];
+
+ preConfigure = ''
+ # Using --libs= doesn't work.
+ export LDFLAGS="-lpng -lz -ljpeg -lungif"
+ '';
+
+ postPatch = ''
+ substituteInPlace Makefile --replace "CC${"\t"}= gcc " "CC = $CC";
+ substituteInPlace Makefile --replace '$(CC) $(LDFLAGS)' '$(LD) $(LDFLAGS)'
+ '';
+
+ configurePlatforms = [ ];
+
src = fetchurl {
url = "http://s-tech.elsat.net.pl/fbv/fbv-${version}.tar.gz";
sha256 = "0g5b550vk11l639y8p5sx1v1i6ihgqk0x1hd0ri1bc2yzpdbjmcv";
