nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 51 lines 1.5 kB view raw
1{ 2 lib, 3 gccStdenv, 4 fetchgit, 5 ncurses, 6}: 7 8gccStdenv.mkDerivation { 9 pname = "uemacs"; 10 version = "4.0-unstable-2018-07-19"; 11 12 src = fetchgit { 13 url = "https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git"; 14 rev = "1cdcf9df88144049750116e36fe20c8c39fa2517"; 15 hash = "sha256-QSouqZiBmKBU6FqRRfWtTGRIl5sqJ8tVPYwdytt/43w="; 16 }; 17 18 buildInputs = [ ncurses ]; 19 20 postPatch = '' 21 substituteInPlace Makefile --replace "lcurses" "lncurses" 22 substituteInPlace Makefile --replace "/usr/bin" "$out/bin" 23 substituteInPlace Makefile --replace "/usr/lib" "$out/share/uemacs" 24 25 substituteInPlace epath.h --replace "/usr/global/lib/" "$out/share/uemacs/" 26 ''; 27 28 makeFlags = [ "CC=${gccStdenv.cc.targetPrefix}cc" ]; 29 30 strictDeps = true; 31 32 enableParallelBuilding = true; 33 34 installPhase = '' 35 mkdir -p $out/{bin,share/uemacs} 36 make install 37 ''; 38 39 meta = with lib; { 40 description = "Linus Torvalds's random version of microemacs with his personal modifications"; 41 homepage = "https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git/about/"; 42 platforms = platforms.all; 43 maintainers = with maintainers; [ networkexception ]; 44 mainProgram = "em"; 45 # MicroEMACS 3.9 can be copied and distributed freely for any 46 # non-commercial purposes. MicroEMACS 3.9 can only be incorporated 47 # into commercial software with the permission of the current author 48 # [Daniel M. Lawrence]. 49 license = licenses.unfree; 50 }; 51}