From 325f7a6bb836c1e0a36d5e871e3c3992181cc090 Mon Sep 17 00:00:00 2001 From: Song Wenwu Date: Fri, 24 May 2013 16:21:34 +0800 Subject: [PATCH] add sxiv-1.1 --- pkgs/applications/graphics/sxiv/default.nix | 22 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/applications/graphics/sxiv/default.nix diff --git a/pkgs/applications/graphics/sxiv/default.nix b/pkgs/applications/graphics/sxiv/default.nix new file mode 100644 index 000000000000..26d910943efa --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1a161bfd9094..e72e775685bf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7911,6 +7911,8 @@ let st = callPackage ../applications/misc/st { }; + sxiv = callPackage ../applications/graphics/sxiv { }; + bittorrentSync = callPackage ../applications/networking/bittorrentsync { }; dropbox = callPackage ../applications/networking/dropbox { };