From 6c92ab80ca692fe69aea5af80719160972a45d3c Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 21 Jul 2023 22:03:56 -0300 Subject: [PATCH] edit: 20180228 -> unstable-2021-04-05 --- pkgs/applications/editors/edit/default.nix | 39 ++++++++++++++-------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/editors/edit/default.nix b/pkgs/applications/editors/edit/default.nix index 7ef81a4ebc0..6ea90b0b8a8 100644 --- a/pkgs/applications/editors/edit/default.nix +++ b/pkgs/applications/editors/edit/default.nix @@ -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 { - pname = "edit-nightly"; - version = "20180228"; + pname = "edit"; + version = "unstable-2021-04-05"; src = fetchgit { url = "git://c9x.me/ed.git"; - rev = "77d96145b163d79186c722a7ffccfff57601157c"; - sha256 = "0rsmp7ydmrq3xx5q19566is9a2v2w5yfsphivfc7j4ljp32jlyyy"; + rev = "bc24e3d4f716b0afacef559f952c40f0be5a1c58"; + hash = "sha256-DzQ+3B96+UzQqL3lhn0DfYmZy2LOANtibj1e1iVR+Jo="; }; nativeBuildInputs = [ - unzip - pkg-config cwebbin + pkg-config + unzip ]; buildInputs = [ - ncurses libX11 libXft + ncurses ]; preBuild = '' - ctangle *.w + ctangle vicmd.w ''; installPhase = '' + runHook preInstall + install -Dm755 obj/edit -t $out/bin + + runHook postInstall ''; - meta = with lib; { + meta = { description = "A relaxing mix of Vi and ACME"; homepage = "https://c9x.me/edit"; - license = licenses.publicDomain; - maintainers = [ maintainers.vrthra ]; - platforms = platforms.all; + license = lib.licenses.publicDomain; + maintainers = with lib.maintainers; [ AndersonTorres vrthra ]; + platforms = lib.platforms.unix; }; }