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