summary refs log tree commit diff
path: root/pkgs/applications/graphics/xzgv/default.nix
diff options
context:
space:
mode:
authorKranium Gikos Mendoza <kranium@gikos.net>2016-01-02 05:17:06 +0800
committerKranium Gikos Mendoza <kranium@gikos.net>2016-01-03 22:43:34 +0800
commitdc36c1b14c4ea4035a7f24c104d1c27d3f3c8dc7 (patch)
tree543b0727a7477caca5c7f44797de9602b0ee73e0 /pkgs/applications/graphics/xzgv/default.nix
parentee807863ee080ea2623dc5e2729940ccf5b43b4d (diff)
downloadnixpkgs-dc36c1b14c4ea4035a7f24c104d1c27d3f3c8dc7.tar
nixpkgs-dc36c1b14c4ea4035a7f24c104d1c27d3f3c8dc7.tar.gz
nixpkgs-dc36c1b14c4ea4035a7f24c104d1c27d3f3c8dc7.tar.bz2
nixpkgs-dc36c1b14c4ea4035a7f24c104d1c27d3f3c8dc7.tar.lz
nixpkgs-dc36c1b14c4ea4035a7f24c104d1c27d3f3c8dc7.tar.xz
nixpkgs-dc36c1b14c4ea4035a7f24c104d1c27d3f3c8dc7.tar.zst
nixpkgs-dc36c1b14c4ea4035a7f24c104d1c27d3f3c8dc7.zip
xzgv: init at 0.9.1
Diffstat (limited to 'pkgs/applications/graphics/xzgv/default.nix')
-rw-r--r--pkgs/applications/graphics/xzgv/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/xzgv/default.nix b/pkgs/applications/graphics/xzgv/default.nix
new file mode 100644
index 00000000000..053e1137e39
--- /dev/null
+++ b/pkgs/applications/graphics/xzgv/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchurl, gtk, pkgconfig, texinfo }:
+
+stdenv.mkDerivation rec {
+  name = "xzgv-${version}";
+  version = "0.9.1";
+  src = fetchurl {
+    url = "mirror://sourceforge/xzgv/xzgv-${version}.tar.gz";
+    sha256 = "1rh432wnvzs434knzbda0fslhfx0gngryrrnqkfm6gwd2g5mxcph";
+  };
+  buildInputs = [ gtk pkgconfig texinfo ];
+  patches = [ ./fix-linker-paths.patch ];
+  postPatch = ''
+    substituteInPlace config.mk \
+      --replace /usr/local $out
+    substituteInPlace config.mk \
+      --replace "CFLAGS=-O2 -Wall" "CFLAGS=-Wall"
+    substituteInPlace Makefile \
+      --replace "all: src man" "all: src man info"
+  '';
+  meta = with stdenv.lib; {
+    homepage = http://sourceforge.net/projects/xzgv/;
+    description = "Picture viewer for X with a thumbnail-based selector";
+    license = licenses.gpl2;
+    maintainers = [ maintainers.womfoo ];
+    platforms = platforms.linux;
+  };
+}