elvis: fix build
This commit is contained in:
parent
4e29638323
commit
c5f818f74d
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user