2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchgit, unzip, pkg-config, ncurses, libX11, libXft, cwebbin }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "edit-nightly";
|
|
|
|
version = "20160425";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://c9x.me/ed.git";
|
|
|
|
rev = "323d49b68c5e804ed3b8cada0e2274f1589b3484";
|
|
|
|
sha256 = "0wv8i3ii7cd9bqhjpahwp2g5fcmyk365nc7ncmvl79cxbz3f7y8v";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
unzip
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
ncurses
|
|
|
|
libX11
|
|
|
|
libXft
|
|
|
|
cwebbin
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
ctangle *.w
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin/
|
|
|
|
cp obj/edit $out/bin/edit
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A relaxing mix of Vi and ACME";
|
|
|
|
homepage = "http://c9x.me/edit";
|
|
|
|
license = licenses.publicDomain;
|
|
|
|
maintainers = [ maintainers.vrthra ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|