mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
83 lines
1.5 KiB
Nix
83 lines
1.5 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, libGL
|
|
, libjpeg
|
|
, libexif
|
|
, giflib
|
|
, libtiff
|
|
, libpng
|
|
, libwebp
|
|
, libdrm
|
|
, pkg-config
|
|
, freetype
|
|
, fontconfig
|
|
, which
|
|
, imagemagick
|
|
, curl
|
|
, sane-backends
|
|
, libXpm
|
|
, libepoxy
|
|
, pixman
|
|
, poppler
|
|
, mesa
|
|
, lirc
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fbida";
|
|
version = "2.14";
|
|
|
|
src = fetchurl {
|
|
url = "http://dl.bytesex.org/releases/fbida/fbida-${version}.tar.gz";
|
|
sha256 = "0f242mix20rgsqz1llibhsz4r2pbvx6k32rmky0zjvnbaqaw1dwm";
|
|
};
|
|
|
|
patches = [
|
|
# Upstream patch to fix build on -fno-common toolchains.
|
|
(fetchurl {
|
|
name = "no-common.patch";
|
|
url = "https://git.kraxel.org/cgit/fbida/patch/?id=1bb8a8aa29845378903f3c690e17c0867c820da2";
|
|
sha256 = "0n5vqbp8wd87q60zfwdf22jirggzngypc02ha34gsj1rd6pvwahi";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config which ];
|
|
buildInputs = [
|
|
libGL
|
|
libexif
|
|
libjpeg
|
|
libpng
|
|
giflib
|
|
freetype
|
|
fontconfig
|
|
libtiff
|
|
libwebp
|
|
imagemagick
|
|
curl
|
|
sane-backends
|
|
libdrm
|
|
libXpm
|
|
libepoxy
|
|
pixman
|
|
poppler
|
|
lirc
|
|
mesa
|
|
];
|
|
|
|
makeFlags = [ "prefix=$(out)" "verbose=yes" "STRIP=" "JPEG_VER=62" ];
|
|
|
|
postPatch = ''
|
|
sed -e 's@ cpp\>@ gcc -E -@' -i GNUmakefile
|
|
sed -e 's@$(HAVE_LINUX_FB_H)@yes@' -i GNUmakefile
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Image viewing and manipulation programs including fbi, fbgs, ida, exiftran and thumbnail.cgi";
|
|
homepage = "https://www.kraxel.org/blog/linux/fbida/";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ pSub ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|