summary refs log tree commit diff
path: root/pkgs/applications/editors/elvis
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2017-03-22 00:44:57 +0100
committerRobin Gloster <mail@glob.in>2017-03-22 00:45:39 +0100
commitc5f818f74d05f7e87a24ec7db63f0d68ecd137d3 (patch)
treeff187a5109fd8a6484a6d101c9be009b3d0e9dda /pkgs/applications/editors/elvis
parent4e296383236cb8ba443a08704a44140aaef6eba7 (diff)
downloadnixlib-c5f818f74d05f7e87a24ec7db63f0d68ecd137d3.tar
nixlib-c5f818f74d05f7e87a24ec7db63f0d68ecd137d3.tar.gz
nixlib-c5f818f74d05f7e87a24ec7db63f0d68ecd137d3.tar.bz2
nixlib-c5f818f74d05f7e87a24ec7db63f0d68ecd137d3.tar.lz
nixlib-c5f818f74d05f7e87a24ec7db63f0d68ecd137d3.tar.xz
nixlib-c5f818f74d05f7e87a24ec7db63f0d68ecd137d3.tar.zst
nixlib-c5f818f74d05f7e87a24ec7db63f0d68ecd137d3.zip
elvis: fix build
Diffstat (limited to 'pkgs/applications/editors/elvis')
-rw-r--r--pkgs/applications/editors/elvis/default.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/pkgs/applications/editors/elvis/default.nix b/pkgs/applications/editors/elvis/default.nix
index 8774b1b461fc..b9bd529930f2 100644
--- a/pkgs/applications/editors/elvis/default.nix
+++ b/pkgs/applications/editors/elvis/default.nix
@@ -1,15 +1,25 @@
-{ fetchurl, stdenv, ncurses }:
+{ fetchurl, fetchpatch, stdenv, ncurses }:
 
 stdenv.mkDerivation rec {
   name = "elvis-2.2_0";
 
   src = fetchurl {
-    url = ftp://ftp.cs.pdx.edu/pub/elvis/elvis-2.2_0.tar.gz;
+    url = "http://www.the-little-red-haired-girl.org/pub/elvis/elvis-2.2_0.tar.gz";
     sha256 = "182fj9qzyq6cjq1r849gpam6nq9smwv9f9xwaq84961p56r6d14s";
   };
 
   buildInputs = [ ncurses ];
 
+  patches = [ (fetchpatch {
+    url = "https://github.com/mbert/elvis/commit/076cf4ad5cc993be0c6195ec0d5d57e5ad8ac1eb.patch";
+    sha256 = "0yzkc1mxjwg09mfmrk20ksa0vfnb2x83ndybwvawq4xjm1qkcahc";
+  }) ];
+
+  postPatch = ''
+    substituteInPlace configure \
+      --replace '-lcurses' '-lncurses'
+  '';
+
   preConfigure = ''
     mkdir -p $out/share/man/man1
   '';