edit: 20180228 -> unstable-2021-04-05
This commit is contained in:
parent
ab5d3388db
commit
6c92ab80ca
|
@ -1,40 +1,53 @@
|
||||||
{ lib, stdenv, fetchgit, unzip, pkg-config, ncurses, libX11, libXft, cwebbin }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchgit
|
||||||
|
, cwebbin
|
||||||
|
, libX11
|
||||||
|
, libXft
|
||||||
|
, ncurses
|
||||||
|
, pkg-config
|
||||||
|
, unzip
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "edit-nightly";
|
pname = "edit";
|
||||||
version = "20180228";
|
version = "unstable-2021-04-05";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "git://c9x.me/ed.git";
|
url = "git://c9x.me/ed.git";
|
||||||
rev = "77d96145b163d79186c722a7ffccfff57601157c";
|
rev = "bc24e3d4f716b0afacef559f952c40f0be5a1c58";
|
||||||
sha256 = "0rsmp7ydmrq3xx5q19566is9a2v2w5yfsphivfc7j4ljp32jlyyy";
|
hash = "sha256-DzQ+3B96+UzQqL3lhn0DfYmZy2LOANtibj1e1iVR+Jo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
unzip
|
|
||||||
pkg-config
|
|
||||||
cwebbin
|
cwebbin
|
||||||
|
pkg-config
|
||||||
|
unzip
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
ncurses
|
|
||||||
libX11
|
libX11
|
||||||
libXft
|
libXft
|
||||||
|
ncurses
|
||||||
];
|
];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
ctangle *.w
|
ctangle vicmd.w
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
install -Dm755 obj/edit -t $out/bin
|
install -Dm755 obj/edit -t $out/bin
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "A relaxing mix of Vi and ACME";
|
description = "A relaxing mix of Vi and ACME";
|
||||||
homepage = "https://c9x.me/edit";
|
homepage = "https://c9x.me/edit";
|
||||||
license = licenses.publicDomain;
|
license = lib.licenses.publicDomain;
|
||||||
maintainers = [ maintainers.vrthra ];
|
maintainers = with lib.maintainers; [ AndersonTorres vrthra ];
|
||||||
platforms = platforms.all;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue