27 stdenv.mkDerivation rec {
32 url = "http://dl.bytesex.org/releases/fbida/fbida-${version}.tar.gz";
33 sha256 = "0f242mix20rgsqz1llibhsz4r2pbvx6k32rmky0zjvnbaqaw1dwm";
37 # Upstream patch to fix build on -fno-common toolchains.
39 name = "no-common.patch";
40 url = "https://git.kraxel.org/cgit/fbida/patch/?id=1bb8a8aa29845378903f3c690e17c0867c820da2";
41 sha256 = "0n5vqbp8wd87q60zfwdf22jirggzngypc02ha34gsj1rd6pvwahi";
45 nativeBuildInputs = [ pkg-config which ];
68 makeFlags = [ "prefix=$(out)" "verbose=yes" "STRIP=" "JPEG_VER=62" ];
71 sed -e 's@ cpp\>@ gcc -E -@' -i GNUmakefile
72 sed -e 's@$(HAVE_LINUX_FB_H)@yes@' -i GNUmakefile
76 description = "Image viewing and manipulation programs including fbi, fbgs, ida, exiftran and thumbnail.cgi";
77 homepage = "https://www.kraxel.org/blog/linux/fbida/";
78 license = licenses.gpl2;
79 maintainers = with maintainers; [ pSub ];
80 platforms = platforms.linux;