From 8d285d87723d9e962377dd707c7ec2ca915ac26b Mon Sep 17 00:00:00 2001 From: Guillaume Desforges Date: Thu, 2 May 2024 18:43:51 +0200 Subject: [PATCH] dummyhttp: init at 1.0.3 --- pkgs/by-name/du/dummyhttp/package.nix | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/du/dummyhttp/package.nix diff --git a/pkgs/by-name/du/dummyhttp/package.nix b/pkgs/by-name/du/dummyhttp/package.nix new file mode 100644 index 000000000000..433649629cb0 --- /dev/null +++ b/pkgs/by-name/du/dummyhttp/package.nix @@ -0,0 +1,33 @@ +{ 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"; + }; +} +