diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2009-08-04 07:14:43 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2009-08-04 07:14:43 +0000 |
commit | 890cf33ef7133af0d66f52183474acf51e878e47 (patch) | |
tree | 4873956a569dd19eaca9f257152dde3923249aff /pkgs | |
parent | 15ac66ea0bcc92b186458f14b87f3fcaf1c1749d (diff) |
Adding fbida, framebuffer image viewer
svn path=/nixpkgs/trunk/; revision=16571
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/graphics/fbida/default.nix | 34 | ||||
-rw-r--r-- | pkgs/build-support/builder-defs/builder-defs.nix | 12 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 6 |
3 files changed, 48 insertions, 4 deletions
diff --git a/pkgs/applications/graphics/fbida/default.nix b/pkgs/applications/graphics/fbida/default.nix new file mode 100644 index 0000000000000..f7482e0bfe75f --- /dev/null +++ b/pkgs/applications/graphics/fbida/default.nix @@ -0,0 +1,34 @@ +a : +let + fetchurl = a.fetchurl; + + 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 { + src = fetchurl { + url = "http://dl.bytesex.org/releases/fbida/fbida-${version}.tar.gz"; + sha256 = "0i6v3fvjc305pfw48sglb5f22lwxldmfch6mjhqbcp7lqkkxw435"; + }; + + inherit buildInputs; + configureFlags = []; + makeFlags = [ + "prefix=$out" + "verbose=yes" + ]; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doMakeInstall" (a.doPatchShebangs "$out/bin")]; + + name = "fbida-" + version; + meta = { + description = "Framebuffer image viewing programs"; + maintainers = [ + ]; + }; +} diff --git a/pkgs/build-support/builder-defs/builder-defs.nix b/pkgs/build-support/builder-defs/builder-defs.nix index 17a49b69413f1..94d3ea8265cde 100644 --- a/pkgs/build-support/builder-defs/builder-defs.nix +++ b/pkgs/build-support/builder-defs/builder-defs.nix @@ -449,10 +449,14 @@ let inherit (builtins) head tail trace; in ); builderDefsPackage = bd: func: - foldArgs - (x: y: ((func (bd // x // y)) // y)) - (innerBuilderDefsPackage bd) - {}; + if (builtins.isFunction func) then + (foldArgs + (x: y: ((func (bd // x // y)) // y)) + (innerBuilderDefsPackage bd) + {}) + else + (builderDefsPackage bd (import (toString func))) + ; generateFontsFromSFD = fullDepEntry ('' for i in *.sfd; do diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a8c92f44dd412..abdb0f4f32579 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6294,6 +6294,12 @@ let inherit (gtkLibs) gtk; }; + fbida = builderDefsPackage ../applications/graphics/fbida { + inherit libjpeg libexif giflib libtiff libpng + imagemagick ghostscript which curl pkgconfig + freetype fontconfig; + }; + fdupes = import ../tools/misc/fdupes { inherit fetchurl stdenv; }; |