2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchgit, unzip, pkg-config, ncurses, libX11, libXft, cwebbin }:
|
2016-04-25 22:26:38 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "edit-nightly";
|
2021-03-02 15:22:20 +00:00
|
|
|
version = "20180228";
|
2016-04-25 22:26:38 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "git://c9x.me/ed.git";
|
2021-03-02 15:22:20 +00:00
|
|
|
rev = "77d96145b163d79186c722a7ffccfff57601157c";
|
|
|
|
sha256 = "0rsmp7ydmrq3xx5q19566is9a2v2w5yfsphivfc7j4ljp32jlyyy";
|
2016-04-25 22:26:38 +00:00
|
|
|
};
|
|
|
|
|
2021-03-18 18:24:39 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
unzip
|
|
|
|
pkg-config
|
|
|
|
cwebbin
|
|
|
|
];
|
|
|
|
|
2016-04-25 22:26:38 +00:00
|
|
|
buildInputs = [
|
2021-03-18 18:24:39 +00:00
|
|
|
ncurses
|
|
|
|
libX11
|
|
|
|
libXft
|
2016-04-25 22:26:38 +00:00
|
|
|
];
|
|
|
|
|
2021-03-02 15:22:20 +00:00
|
|
|
preBuild = ''
|
2016-04-25 22:26:38 +00:00
|
|
|
ctangle *.w
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-03-02 15:22:20 +00:00
|
|
|
install -Dm755 obj/edit -t $out/bin
|
2016-04-25 22:26:38 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-04-25 22:26:38 +00:00
|
|
|
description = "A relaxing mix of Vi and ACME";
|
2021-03-02 15:22:20 +00:00
|
|
|
homepage = "https://c9x.me/edit";
|
2016-04-25 22:26:38 +00:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
maintainers = [ maintainers.vrthra ];
|
2021-03-02 15:22:20 +00:00
|
|
|
platforms = platforms.all;
|
2016-04-25 22:26:38 +00:00
|
|
|
};
|
|
|
|
}
|