From dbb8c452bb966c9aad8dedf2a08dd2375574ec6c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 16 Jan 2011 16:28:08 +0000 Subject: [PATCH] * fbida: fix a segfault in exiftran. svn path=/nixpkgs/trunk/; revision=25588 --- pkgs/applications/graphics/fbida/default.nix | 43 +++++++++----------- pkgs/top-level/all-packages.nix | 6 +-- 2 files changed, 20 insertions(+), 29 deletions(-) diff --git a/pkgs/applications/graphics/fbida/default.nix b/pkgs/applications/graphics/fbida/default.nix index f7482e0bfe75..65f5cdb2a36d 100644 --- a/pkgs/applications/graphics/fbida/default.nix +++ b/pkgs/applications/graphics/fbida/default.nix @@ -1,34 +1,29 @@ -a : -let - fetchurl = a.fetchurl; +{ stdenv, fetchurl, libjpeg, libexif, giflib, libtiff, libpng +, pkgconfig, freetype, fontconfig +}: - version = a.lib.attrByPath ["version"] "2.07" a; - buildInputs = with a; [ - libjpeg libexif giflib libtiff libpng - imagemagick ghostscript which curl - pkgconfig freetype fontconfig - ]; -in -rec { +stdenv.mkDerivation rec { + name = "fbida-2.07"; + src = fetchurl { - url = "http://dl.bytesex.org/releases/fbida/fbida-${version}.tar.gz"; + url = "http://dl.bytesex.org/releases/fbida/${name}.tar.gz"; sha256 = "0i6v3fvjc305pfw48sglb5f22lwxldmfch6mjhqbcp7lqkkxw435"; }; - inherit buildInputs; - configureFlags = []; - makeFlags = [ - "prefix=$out" - "verbose=yes" + patches = + [ # Fetch a segfault in exiftran (http://bugs.gentoo.org/284753). + (fetchurl { + url = http://bugs.gentoo.org/attachment.cgi?id=203930; + sha256 = "0zwva6qbahjdzk7vaw7cn3mj0326kawqw58rspvrz9m4vw5kqdzj"; + }) ]; - /* doConfigure should be removed if not needed */ - phaseNames = ["doMakeInstall" (a.doPatchShebangs "$out/bin")]; - - name = "fbida-" + version; + buildInputs = + [ pkgconfig libexif libjpeg giflib libpng giflib freetype fontconfig ]; + + makeFlags = [ "prefix=$(out)" "verbose=yes" ]; + meta = { - description = "Framebuffer image viewing programs"; - maintainers = [ - ]; + description = "Image viewing and manipulation programs"; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 66134fe8f09f..3b9529b5fabd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5893,11 +5893,7 @@ let wvdial = callPackage ../os-specific/linux/wvdial { }; - fbida = builderDefsPackage ../applications/graphics/fbida { - inherit libjpeg libexif giflib libtiff libpng - imagemagick ghostscript which curl pkgconfig - freetype fontconfig; - }; + fbida = callPackage ../applications/graphics/fbida { }; fdupes = callPackage ../tools/misc/fdupes { };