uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
49
pkgs/applications/editors/elvis/default.nix
Normal file
49
pkgs/applications/editors/elvis/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ fetchurl, fetchpatch, lib, stdenv, ncurses }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "elvis";
|
||||
version = "2.2_0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.the-little-red-haired-girl.org/pub/elvis/elvis-${version}.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
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/elvis $out/share/elvis/doc
|
||||
cp elvis ref elvtags elvfmt $out/bin
|
||||
cp -R data/* $out/share/elvis
|
||||
cp doc/* $out/share/elvis/doc
|
||||
|
||||
mkdir -p $out/share/man/man1
|
||||
for a in doc/*.man; do
|
||||
cp $a $out/share/man/man1/`basename $a .man`.1
|
||||
done
|
||||
'';
|
||||
|
||||
configureFlags = [ "--ioctl=termios" ];
|
||||
|
||||
meta = {
|
||||
homepage = "http://elvis.the-little-red-haired-girl.org/";
|
||||
description = "A vi clone for Unix and other operating systems";
|
||||
license = lib.licenses.free;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue