depot/third_party/nixpkgs/pkgs/by-name/du/dummyhttp/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

33 lines
793 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, darwin
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "dummyhttp";
version = "1.0.3";
src = fetchFromGitHub {
owner = "svenstaro";
repo = "dummyhttp";
rev = "v${version}";
hash = "sha256-MDkyJAVNpCaAomAEweYrQeQWtil8bYo34ko9rAu+VBU=";
};
cargoHash = "sha256-JkA0qW/MQH+XmiD9eiT0s70HxNNYyk9ecBo4k5nUF10=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "Super simple HTTP server that replies a fixed body with a fixed response code";
homepage = "https://github.com/svenstaro/dummyhttp";
license = with licenses; [ mit ];
maintainers = with maintainers; [ GuillaumeDesforges ];
mainProgram = "dummyhttp";
};
}