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