Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 44 lines 850 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 pkg-config, 6 ncurses6, 7 openssl, 8 sqlite, 9 perl, 10}: 11 12rustPlatform.buildRustPackage (finalAttrs: { 13 pname = "ncgopher"; 14 version = "0.7.0"; 15 16 src = fetchFromGitHub { 17 owner = "jansc"; 18 repo = "ncgopher"; 19 tag = "v${finalAttrs.version}"; 20 hash = "sha256-9bwQgFZkwOV28qflWL7ZyUE3SLvPhf77sjomurqMK6E="; 21 }; 22 23 cargoHash = "sha256-wfodxA1fvdsvWvmnzYmL4GzgdIiQbXuhGq/U9spM+0s="; 24 25 nativeBuildInputs = [ 26 pkg-config 27 perl 28 ]; 29 30 buildInputs = [ 31 ncurses6 32 openssl 33 sqlite 34 ]; 35 36 meta = { 37 description = "Gopher and gemini client for the modern internet"; 38 homepage = "https://github.com/jansc/ncgopher"; 39 license = lib.licenses.bsd2; 40 maintainers = with lib.maintainers; [ shamilton ]; 41 platforms = lib.platforms.linux; 42 mainProgram = "ncgopher"; 43 }; 44})