edit: 20180228 -> unstable-2021-04-05

+26 -13
+26 -13
pkgs/applications/editors/edit/default.nix
··· 1 - { lib, stdenv, fetchgit, unzip, pkg-config, ncurses, libX11, libXft, cwebbin }: 1 + { lib 2 + , stdenv 3 + , fetchgit 4 + , cwebbin 5 + , libX11 6 + , libXft 7 + , ncurses 8 + , pkg-config 9 + , unzip 10 + }: 2 11 3 12 stdenv.mkDerivation { 4 - pname = "edit-nightly"; 5 - version = "20180228"; 13 + pname = "edit"; 14 + version = "unstable-2021-04-05"; 6 15 7 16 src = fetchgit { 8 17 url = "git://c9x.me/ed.git"; 9 - rev = "77d96145b163d79186c722a7ffccfff57601157c"; 10 - sha256 = "0rsmp7ydmrq3xx5q19566is9a2v2w5yfsphivfc7j4ljp32jlyyy"; 18 + rev = "bc24e3d4f716b0afacef559f952c40f0be5a1c58"; 19 + hash = "sha256-DzQ+3B96+UzQqL3lhn0DfYmZy2LOANtibj1e1iVR+Jo="; 11 20 }; 12 21 13 22 nativeBuildInputs = [ 14 - unzip 23 + cwebbin 15 24 pkg-config 16 - cwebbin 25 + unzip 17 26 ]; 18 27 19 28 buildInputs = [ 20 - ncurses 21 29 libX11 22 30 libXft 31 + ncurses 23 32 ]; 24 33 25 34 preBuild = '' 26 - ctangle *.w 35 + ctangle vicmd.w 27 36 ''; 28 37 29 38 installPhase = '' 39 + runHook preInstall 40 + 30 41 install -Dm755 obj/edit -t $out/bin 42 + 43 + runHook postInstall 31 44 ''; 32 45 33 - meta = with lib; { 46 + meta = { 34 47 description = "A relaxing mix of Vi and ACME"; 35 48 homepage = "https://c9x.me/edit"; 36 - license = licenses.publicDomain; 37 - maintainers = [ maintainers.vrthra ]; 38 - platforms = platforms.all; 49 + license = lib.licenses.publicDomain; 50 + maintainers = with lib.maintainers; [ AndersonTorres vrthra ]; 51 + platforms = lib.platforms.unix; 39 52 }; 40 53 }