forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, libjpeg, libexif, libungif, libtiff, libpng, libwebp, libdrm
|
|
, pkgconfig, freetype, fontconfig, which, imagemagick, curl, sane-backends, libXpm
|
|
, epoxy, poppler, mesa, lirc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "fbida-2.14";
|
|
|
|
src = fetchurl {
|
|
url = "http://dl.bytesex.org/releases/fbida/${name}.tar.gz";
|
|
sha256 = "0f242mix20rgsqz1llibhsz4r2pbvx6k32rmky0zjvnbaqaw1dwm";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig which ];
|
|
buildInputs = [
|
|
libexif libjpeg libpng libungif freetype fontconfig libtiff libwebp
|
|
imagemagick curl sane-backends libdrm libXpm epoxy poppler lirc
|
|
mesa
|
|
];
|
|
|
|
makeFlags = [ "prefix=$(out)" "verbose=yes" "STRIP=" "JPEG_VER=62" ];
|
|
|
|
patchPhase = ''
|
|
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;
|
|
};
|
|
}
|