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