edit: 20160425 -> 20180228

- Fix compilation on darwin
- Fix buildInputs specification

+9 -18
+9 -18
pkgs/applications/editors/edit/default.nix
··· 2 3 stdenv.mkDerivation { 4 pname = "edit-nightly"; 5 - version = "20160425"; 6 7 src = fetchgit { 8 url = "git://c9x.me/ed.git"; 9 - rev = "323d49b68c5e804ed3b8cada0e2274f1589b3484"; 10 - sha256 = "0wv8i3ii7cd9bqhjpahwp2g5fcmyk365nc7ncmvl79cxbz3f7y8v"; 11 }; 12 13 - buildInputs = [ 14 - unzip 15 - pkg-config 16 - ncurses 17 - libX11 18 - libXft 19 - cwebbin 20 - ]; 21 22 - buildPhase = '' 23 ctangle *.w 24 - make 25 ''; 26 27 installPhase = '' 28 - mkdir -p $out/bin/ 29 - cp obj/edit $out/bin/edit 30 ''; 31 32 meta = with lib; { 33 description = "A relaxing mix of Vi and ACME"; 34 - homepage = "http://c9x.me/edit"; 35 license = licenses.publicDomain; 36 maintainers = [ maintainers.vrthra ]; 37 - platforms = platforms.linux; 38 }; 39 } 40 -
··· 2 3 stdenv.mkDerivation { 4 pname = "edit-nightly"; 5 + version = "20180228"; 6 7 src = fetchgit { 8 url = "git://c9x.me/ed.git"; 9 + rev = "77d96145b163d79186c722a7ffccfff57601157c"; 10 + sha256 = "0rsmp7ydmrq3xx5q19566is9a2v2w5yfsphivfc7j4ljp32jlyyy"; 11 }; 12 13 + nativeBuildInputs = [ unzip pkg-config cwebbin ]; 14 + buildInputs = [ ncurses libX11 libXft ]; 15 16 + preBuild = '' 17 ctangle *.w 18 ''; 19 20 installPhase = '' 21 + install -Dm755 obj/edit -t $out/bin 22 ''; 23 24 meta = with lib; { 25 description = "A relaxing mix of Vi and ACME"; 26 + homepage = "https://c9x.me/edit"; 27 license = licenses.publicDomain; 28 maintainers = [ maintainers.vrthra ]; 29 + platforms = platforms.all; 30 }; 31 }