Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 43 lines 817 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 ncurses, 6 perl, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "openvi"; 11 version = "7.6.31"; 12 13 src = fetchFromGitHub { 14 owner = "johnsonjh"; 15 repo = "OpenVi"; 16 rev = version; 17 hash = "sha256-RqmulYHQFZmTHQAYgZmB8tAG6mSquNODmssfKB8YqDU="; 18 }; 19 20 buildInputs = [ 21 ncurses 22 perl 23 ]; 24 25 makeFlags = [ 26 "PREFIX=$(out)" 27 # command -p will yield command not found error 28 "PAWK=awk" 29 # silently fail the chown command 30 "IUSGR=$(USER)" 31 ]; 32 33 enableParallelBuilding = true; 34 35 meta = { 36 homepage = "https://github.com/johnsonjh/OpenVi"; 37 description = "Portable OpenBSD vi for UNIX systems"; 38 license = lib.licenses.bsd3; 39 platforms = lib.platforms.unix; 40 maintainers = with lib.maintainers; [ aleksana ]; 41 mainProgram = "ovi"; 42 }; 43}