diff options
author | Mateusz Kowalczyk <mk440@bath.ac.uk> | 2014-10-12 12:37:50 +0100 |
---|---|---|
committer | Mateusz Kowalczyk <mk440@bath.ac.uk> | 2014-10-12 12:37:50 +0100 |
commit | b0258a5d17dcc77ec26b029abea6b59bb4240ffb (patch) | |
tree | c012fbb26cca3871d0f68039806cb4b4dc55cd7b /pkgs/tools/text | |
parent | 9701d58e28c0b38c11b2d19119e0b669852f3783 (diff) | |
parent | 0b649538b2ba1fd12d01b553ba7521946c4bbe68 (diff) | |
download | nixlib-b0258a5d17dcc77ec26b029abea6b59bb4240ffb.tar nixlib-b0258a5d17dcc77ec26b029abea6b59bb4240ffb.tar.gz nixlib-b0258a5d17dcc77ec26b029abea6b59bb4240ffb.tar.bz2 nixlib-b0258a5d17dcc77ec26b029abea6b59bb4240ffb.tar.lz nixlib-b0258a5d17dcc77ec26b029abea6b59bb4240ffb.tar.xz nixlib-b0258a5d17dcc77ec26b029abea6b59bb4240ffb.tar.zst nixlib-b0258a5d17dcc77ec26b029abea6b59bb4240ffb.zip |
Merge pull request #4462 from VShell/discount
discount: new package
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r-- | pkgs/tools/text/discount/default.nix | 19 | ||||
-rw-r--r-- | pkgs/tools/text/discount/fix-configure-path.patch | 12 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/text/discount/default.nix b/pkgs/tools/text/discount/default.nix new file mode 100644 index 000000000000..ff846ac0933d --- /dev/null +++ b/pkgs/tools/text/discount/default.nix @@ -0,0 +1,19 @@ +{stdenv, fetchurl}: +stdenv.mkDerivation rec { + version = "2.1.6"; + name = "discount-${version}"; + + src = fetchurl { + url = "http://www.pell.portland.or.us/~orc/Code/discount/discount-${version}.tar.bz2"; + sha256 = "15h726m5yalq15hkxxfw4bxwd6wkwkan5q7s80pgi1z32ygb4avh"; + }; + patches = ./fix-configure-path.patch; + configureScript = "./configure.sh"; + + meta = with stdenv.lib; { + description = "Implementation of Markdown markup language in C"; + homepage = "http://www.pell.portland.or.us/~orc/Code/discount/"; + license = licenses.bsd3; + maintainers = [ maintainers.shell ]; + }; +} diff --git a/pkgs/tools/text/discount/fix-configure-path.patch b/pkgs/tools/text/discount/fix-configure-path.patch new file mode 100644 index 000000000000..045b369b4b69 --- /dev/null +++ b/pkgs/tools/text/discount/fix-configure-path.patch @@ -0,0 +1,12 @@ +diff -rupN discount-2.1.6-original/configure.inc discount-2.1.6/configure.inc +--- discount-2.1.6-original/configure.inc 2014-10-10 15:34:24.158325345 +0100 ++++ discount-2.1.6/configure.inc 2014-10-10 15:34:33.553325321 +0100 +@@ -32,7 +32,7 @@ + # this preamble code is executed when this file is sourced and it picks + # interesting things off the command line. + # +-ac_default_path="/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin" ++ac_default_path=$PATH + + ac_standard="--src=DIR where the source lives (.) + --prefix=DIR where to install the final product (/usr/local) |