Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 28 lines 673 B view raw
1{ 2 fetchFromGitHub, 3 rustPlatform, 4 lib, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "restls"; 9 version = "0.1.1"; 10 11 src = fetchFromGitHub { 12 owner = "3andne"; 13 repo = "restls"; 14 rev = "v${version}"; 15 hash = "sha256-nlQdBwxHVbpOmb9Wq+ap2i4KI1zJYT3SEqvedDbVH8Q="; 16 }; 17 18 cargoHash = "sha256-hub64iZNVw/BJjibtDnJ3boIU27DEbYSlMLhFFVJ9ps="; 19 20 meta = with lib; { 21 homepage = "https://github.com/3andne/restls"; 22 changelog = "https://github.com/3andne/restls/releases/tag/${src.rev}"; 23 description = "Perfect Impersonation of TLS"; 24 license = licenses.bsd3; 25 mainProgram = "restls"; 26 maintainers = with maintainers; [ oluceps ]; 27 }; 28}