From d339184bbf05fe6ee93369625dd2c9e5e69005e5 Mon Sep 17 00:00:00 2001 From: Sergey Mironov Date: Tue, 15 May 2012 01:43:46 +0400 Subject: [PATCH 1/2] zathura: version 0.1.2 with plugins Expression handles new modular structure of zathura and adds support for djvu, pdf and ps plugins. --- pkgs/applications/misc/girara/default.nix | 26 ++++++++ pkgs/applications/misc/zathura/builder.sh | 11 ++++ .../misc/zathura/core/default.nix | 29 +++++++++ pkgs/applications/misc/zathura/default.nix | 60 ++++++++++++------- .../misc/zathura/djvu/default.nix | 28 +++++++++ .../misc/zathura/djvu/gtkflags.patch | 23 +++++++ .../misc/zathura/pdf-poppler/default.nix | 25 ++++++++ pkgs/applications/misc/zathura/ps/default.nix | 28 +++++++++ .../misc/zathura/ps/gtkflags.patch | 25 ++++++++ pkgs/top-level/all-packages.nix | 8 ++- 10 files changed, 239 insertions(+), 24 deletions(-) create mode 100644 pkgs/applications/misc/girara/default.nix create mode 100644 pkgs/applications/misc/zathura/builder.sh create mode 100644 pkgs/applications/misc/zathura/core/default.nix create mode 100644 pkgs/applications/misc/zathura/djvu/default.nix create mode 100644 pkgs/applications/misc/zathura/djvu/gtkflags.patch create mode 100644 pkgs/applications/misc/zathura/pdf-poppler/default.nix create mode 100644 pkgs/applications/misc/zathura/ps/default.nix create mode 100644 pkgs/applications/misc/zathura/ps/gtkflags.patch diff --git a/pkgs/applications/misc/girara/default.nix b/pkgs/applications/misc/girara/default.nix new file mode 100644 index 00000000000..074f70448cd --- /dev/null +++ b/pkgs/applications/misc/girara/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl, pkgconfig, gtk, gettext }: + +stdenv.mkDerivation rec { + name = "girara-0.1.2"; + + src = fetchurl { + url = "http://pwmt.org/projects/girara/download/${name}.tar.gz"; + sha256 = "89231d0da3c790e0765ad85d74f64cf50051b8bafe6065882e34e378ab14ec99"; + }; + + buildInputs = [ pkgconfig gtk gettext ]; + + makeFlags = "PREFIX=$(out)"; + + meta = { + homepage = https://pwmt.org/girara/; + description = "User interface library"; + longDescription = '' + girara is a library that implements a GTK+ based VIM-like user interface + that focuses on simplicity and minimalism. + ''; + license = "free"; + platforms = stdenv.lib.platforms.linux; + }; +} + diff --git a/pkgs/applications/misc/zathura/builder.sh b/pkgs/applications/misc/zathura/builder.sh new file mode 100644 index 00000000000..9ca45b2cc99 --- /dev/null +++ b/pkgs/applications/misc/zathura/builder.sh @@ -0,0 +1,11 @@ +source $stdenv/setup + +mkdir -pv $out/bin/ + +cat > $out/bin/zathura < Date: Thu, 16 Aug 2012 18:33:25 +0400 Subject: [PATCH 2/2] zathura: fix broken links in meta information --- pkgs/applications/misc/girara/default.nix | 2 +- pkgs/applications/misc/zathura/core/default.nix | 4 ++-- pkgs/applications/misc/zathura/default.nix | 2 +- pkgs/applications/misc/zathura/djvu/default.nix | 2 +- pkgs/applications/misc/zathura/pdf-poppler/default.nix | 2 +- pkgs/applications/misc/zathura/ps/default.nix | 8 ++++---- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/misc/girara/default.nix b/pkgs/applications/misc/girara/default.nix index 074f70448cd..2fa36b33eb0 100644 --- a/pkgs/applications/misc/girara/default.nix +++ b/pkgs/applications/misc/girara/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { makeFlags = "PREFIX=$(out)"; meta = { - homepage = https://pwmt.org/girara/; + homepage = http://pwmt.org/projects/girara/; description = "User interface library"; longDescription = '' girara is a library that implements a GTK+ based VIM-like user interface diff --git a/pkgs/applications/misc/zathura/core/default.nix b/pkgs/applications/misc/zathura/core/default.nix index 8b23fba5e27..0c58965fc19 100644 --- a/pkgs/applications/misc/zathura/core/default.nix +++ b/pkgs/applications/misc/zathura/core/default.nix @@ -16,8 +16,8 @@ stdenv.mkDerivation rec { makeFlags = "PREFIX=$(out)"; meta = { - homepage = https://pwmt.org/zathura/; - description = "A core component for zathura PDF viewer"; + homepage = http://pwmt.org/projects/zathura/; + description = "A core component for zathura PDF viewer"; license = "free"; platforms = stdenv.lib.platforms.linux; diff --git a/pkgs/applications/misc/zathura/default.nix b/pkgs/applications/misc/zathura/default.nix index 17ce88a8203..b5ba4f9ada7 100644 --- a/pkgs/applications/misc/zathura/default.nix +++ b/pkgs/applications/misc/zathura/default.nix @@ -26,7 +26,7 @@ rec { builder = ./builder.sh; meta = { - homepage = https://pwmt.org/zathura/; + homepage = http://pwmt.org/projects/zathura/; description = "A highly customizable and functional PDF viewer"; longDescription = '' Zathura is a highly customizable and functional PDF viewer based on the diff --git a/pkgs/applications/misc/zathura/djvu/default.nix b/pkgs/applications/misc/zathura/djvu/default.nix index 9d3ff5da482..c4656e73236 100644 --- a/pkgs/applications/misc/zathura/djvu/default.nix +++ b/pkgs/applications/misc/zathura/djvu/default.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { makeFlags = "PREFIX=$(out) PLUGINDIR=$(out)/lib"; meta = { - homepage = https://pwmt.org/zathura/; + homepage = http://pwmt.org/projects/zathura/; description = "A zathura DJVU plugin"; longDescription = '' The zathura-djvu plugin adds DjVu support to zathura by using the diff --git a/pkgs/applications/misc/zathura/pdf-poppler/default.nix b/pkgs/applications/misc/zathura/pdf-poppler/default.nix index 0d7b4cc830f..17e00b4e622 100644 --- a/pkgs/applications/misc/zathura/pdf-poppler/default.nix +++ b/pkgs/applications/misc/zathura/pdf-poppler/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { makeFlags = "PREFIX=$(out) PLUGINDIR=$(out)/lib"; meta = { - homepage = https://pwmt.org/zathura/; + homepage = http://pwmt.org/projects/zathura/; description = "A zathura PDF plugin"; longDescription = '' The zathura-pdf-poppler plugin adds PDF support to zathura by diff --git a/pkgs/applications/misc/zathura/ps/default.nix b/pkgs/applications/misc/zathura/ps/default.nix index 7c733e5380d..ae9aeee7715 100644 --- a/pkgs/applications/misc/zathura/ps/default.nix +++ b/pkgs/applications/misc/zathura/ps/default.nix @@ -15,12 +15,12 @@ stdenv.mkDerivation rec { makeFlags = "PREFIX=$(out) PLUGINDIR=$(out)/lib"; meta = { - homepage = https://pwmt.org/zathura/; + homepage = http://pwmt.org/projects/zathura/; description = "A zathura PS plugin"; longDescription = '' - The zathura-ps plugin adds PS support to zathura by using the - libspectre library. - ''; + The zathura-ps plugin adds PS support to zathura by using the + libspectre library. + ''; license = "free"; platforms = stdenv.lib.platforms.linux; };