3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/edit/default.nix

41 lines
793 B
Nix
Raw Normal View History

{ 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 {
pname = "edit-nightly";
version = "20180228";
2016-04-25 23:26:38 +01:00
src = fetchgit {
url = "git://c9x.me/ed.git";
rev = "77d96145b163d79186c722a7ffccfff57601157c";
sha256 = "0rsmp7ydmrq3xx5q19566is9a2v2w5yfsphivfc7j4ljp32jlyyy";
2016-04-25 23:26:38 +01:00
};
nativeBuildInputs = [
unzip
pkg-config
cwebbin
];
2016-04-25 23:26:38 +01:00
buildInputs = [
ncurses
libX11
libXft
2016-04-25 23:26:38 +01:00
];
preBuild = ''
2016-04-25 23:26:38 +01:00
ctangle *.w
'';
installPhase = ''
install -Dm755 obj/edit -t $out/bin
2016-04-25 23:26:38 +01:00
'';
meta = with lib; {
2016-04-25 23:26:38 +01:00
description = "A relaxing mix of Vi and ACME";
homepage = "https://c9x.me/edit";
2016-04-25 23:26:38 +01:00
license = licenses.publicDomain;
maintainers = [ maintainers.vrthra ];
platforms = platforms.all;
2016-04-25 23:26:38 +01:00
};
}