edit: 20160425 -> 20180228

- Fix compilation on darwin
- Fix buildInputs specification

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