diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-10-31 19:35:09 +0100 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-10-31 19:35:09 +0100 |
commit | c4625b175f8200f643fd6e11010932ea44c78433 (patch) | |
tree | bce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/applications/editors/elvis/default.nix | |
parent | 49f735974dd103039ddc4cb576bb76555164a9e7 (diff) | |
parent | d661aa56a8843e991261510c1bb28fdc2f6975ae (diff) |
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie
git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7
git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/editors/elvis/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/applications/editors/elvis/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/editors/elvis/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/editors/elvis/default.nix new file mode 100644 index 000000000000..3a6c8c97b221 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/editors/elvis/default.nix @@ -0,0 +1,46 @@ +{ fetchurl, fetchpatch, stdenv, ncurses }: + +stdenv.mkDerivation { + name = "elvis-2.2_0"; + + src = fetchurl { + 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 + ''; + + 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.vi-editor.org/"; + description = "A vi clone for Unix and other operating systems"; + license = stdenv.lib.licenses.free; + }; +} |