summary refs log tree commit diff
path: root/pkgs/tools/graphics/fim/default.nix
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2017-09-21 15:55:22 +0200
committerMichael Weiss <dev.primeos@gmail.com>2017-09-21 16:08:32 +0200
commite0ef28c12df6fe12ccfc1c29dcf4c9bb62891092 (patch)
tree2c2c7cc1c2413a075b3f62a32550b1bb284400a8 /pkgs/tools/graphics/fim/default.nix
parent41cca299ef41268d872fba5e57557afd6c76410f (diff)
downloadnixpkgs-e0ef28c12df6fe12ccfc1c29dcf4c9bb62891092.tar
nixpkgs-e0ef28c12df6fe12ccfc1c29dcf4c9bb62891092.tar.gz
nixpkgs-e0ef28c12df6fe12ccfc1c29dcf4c9bb62891092.tar.bz2
nixpkgs-e0ef28c12df6fe12ccfc1c29dcf4c9bb62891092.tar.lz
nixpkgs-e0ef28c12df6fe12ccfc1c29dcf4c9bb62891092.tar.xz
nixpkgs-e0ef28c12df6fe12ccfc1c29dcf4c9bb62891092.tar.zst
nixpkgs-e0ef28c12df6fe12ccfc1c29dcf4c9bb62891092.zip
fim: init at 0.5rc3
Diffstat (limited to 'pkgs/tools/graphics/fim/default.nix')
-rw-r--r--pkgs/tools/graphics/fim/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/fim/default.nix b/pkgs/tools/graphics/fim/default.nix
new file mode 100644
index 00000000000..e4a44d0784e
--- /dev/null
+++ b/pkgs/tools/graphics/fim/default.nix
@@ -0,0 +1,40 @@
+{ stdenv, fetchurl, autoconf, automake, pkgconfig, perl
+, flex, bison, readline
+, giflib, libtiff, libexif, libpng, libjpeg, jasper
+, aalib, inkscape#, SDL, fig2dev, jasper # TODO
+}:
+
+stdenv.mkDerivation rec {
+  name = "fim-${version}";
+  version = "0.5rc3";
+
+  src = fetchurl {
+    url = mirror://savannah/fbi-improved/fim-0.5-rc3.tar.gz;
+    sha256 = "12aka85h469zfj0zcx3xdpan70gq8nf5rackgb1ldcl9mqjn50c2";
+  };
+
+  postPatch = ''
+   substituteInPlace doc/vim2html.pl \
+     --replace /usr/bin/perl ${perl}/bin/perl
+  '';
+
+  nativeBuildInputs = [ autoconf automake pkgconfig ];
+
+  buildInputs = [
+    perl flex bison readline
+    giflib libtiff libexif libpng libjpeg jasper aalib inkscape
+  ];
+
+  meta = with stdenv.lib; {
+    description = "A lightweight, highly customizable and scriptable image viewer";
+    longDescription = ''
+      FIM (Fbi IMproved) is a lightweight, console based image viewer that aims
+      to be a highly customizable and scriptable for users who are comfortable
+      with software like the VIM text editor or the Mutt mail user agent.
+    '';
+    homepage = http://www.nongnu.org/fbi-improved/;
+    license = licenses.gpl2Plus;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ primeos ];
+  };
+}