nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 948 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6 openssl, 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "simple-http-server"; 11 version = "0.6.13"; 12 13 src = fetchFromGitHub { 14 owner = "TheWaWaR"; 15 repo = "simple-http-server"; 16 rev = "v${version}"; 17 sha256 = "sha256-uTzzQg1UJ+PG2poIKd+LO0T0y7z48ZK0f196zIgeZhs="; 18 }; 19 20 cargoHash = "sha256-y+pNDg73fAHs9m0uZr6z0HTA/vB3fFM5qukJycuIxnY="; 21 22 nativeBuildInputs = [ pkg-config ]; 23 24 buildInputs = [ openssl ]; 25 26 # Currently no tests are implemented, so we avoid building the package twice 27 doCheck = false; 28 29 meta = { 30 description = "Simple HTTP server in Rust"; 31 homepage = "https://github.com/TheWaWaR/simple-http-server"; 32 changelog = "https://github.com/TheWaWaR/simple-http-server/releases/tag/v${version}"; 33 license = lib.licenses.mit; 34 maintainers = with lib.maintainers; [ 35 mephistophiles 36 ]; 37 mainProgram = "simple-http-server"; 38 }; 39}