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