about summary refs log tree commit diff
path: root/pkgs/applications/graphics/sxiv/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/graphics/sxiv/default.nix')
-rw-r--r--pkgs/applications/graphics/sxiv/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/sxiv/default.nix b/pkgs/applications/graphics/sxiv/default.nix
new file mode 100644
index 0000000000000..26d910943efaf
--- /dev/null
+++ b/pkgs/applications/graphics/sxiv/default.nix
@@ -0,0 +1,22 @@
+{ stdenv, fetchurl, libX11, imlib2, giflib }:
+
+stdenv.mkDerivation {
+  name = "sxiv-1.1";
+
+  src = fetchurl {
+    url = "https://github.com/muennich/sxiv/archive/v1.1.tar.gz";
+    name = "sxiv-1.1.tar.gz";
+    sha256 = "0gsqwa1yacsig7ycjrw0sjyrsa9mynfzzbwm1vp2bgk4s9hb08kx";
+  };
+
+  buildInputs = [ libX11 imlib2 giflib ];
+
+  prePatch = ''sed -i "s@/usr/local@$out@" Makefile'';
+
+  meta = {
+    description = "Simple X Image Viewer";
+    homepage = "https://github.com/muennich/sxiv";
+    license = "GPLv2+";
+    platforms = stdenv.lib.platforms.linux;
+  };
+}