diff options
author | Jacob Hinkle <jacob.hinkle@gmail.com> | 2014-03-21 14:32:21 -0600 |
---|---|---|
committer | Jacob Hinkle <jacob.hinkle@gmail.com> | 2014-03-21 14:32:21 -0600 |
commit | 715b90f784ca6e753bd78116dffddaf7a5a6b326 (patch) | |
tree | c02c2a64b2db5dcf1f9bd8eb9705998804ce0251 /pkgs/applications/networking/newsreaders/slrn | |
parent | 774d179790d5e062bfa2e6322d6d6d751ceed2b7 (diff) |
Update default.nix to use ncurses and patch hardcoded paths
Diffstat (limited to 'pkgs/applications/networking/newsreaders/slrn')
-rw-r--r-- | pkgs/applications/networking/newsreaders/slrn/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/applications/networking/newsreaders/slrn/default.nix b/pkgs/applications/networking/newsreaders/slrn/default.nix index 3a4a7d65c848..e079e9d9a9f9 100644 --- a/pkgs/applications/networking/newsreaders/slrn/default.nix +++ b/pkgs/applications/networking/newsreaders/slrn/default.nix @@ -1,5 +1,5 @@ -{ stdenv, fetchurl, pkgs -, slang +{ stdenv, fetchurl, pkgs, +slang, ncurses }: let version = "1.0.1"; in @@ -12,7 +12,16 @@ stdenv.mkDerivation { sha256 = "1rmaprfwvshzkv0c5vi43839cz3laqjpl306b9z0ghwyjdha1d06"; }; - nativeBuildInputs = [ slang ]; + preConfigure = '' + sed -i -e "s|-ltermcap|-lncurses|" configure + sed -i autoconf/Makefile.in src/Makefile.in \ + -e "s|/bin/cp|cp|" \ + -e "s|/bin/rm|rm|" + ''; + + configureFlags = "--with-slang=${slang}"; + + buildInputs = [ slang ncurses ]; meta = { description = "The slrn (S-Lang read news) newsreader"; |