depot/third_party/nixpkgs/pkgs/by-name/du/dummyhttp/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

33 lines
806 B
Nix

{ lib
, fetchFromGitHub
, rustPlatform
, darwin
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "dummyhttp";
version = "1.1.0";
src = fetchFromGitHub {
owner = "svenstaro";
repo = "dummyhttp";
rev = "v${version}";
hash = "sha256-LgOIL4kg3cH0Eo+Z+RGwxZTPzCNSGAdKT7N8tZWHSQQ=";
};
cargoHash = "sha256-bw0VlPHjNZkpLVJZrB3aaQGkwvQpkJGIn+hi0yn2M4s=";
buildInputs = lib.optionals stdenv.hostPlatform.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";
};
}