stdenv: fix documentation for stripAllFlags and stripDebugFlags (#352127)
[NixPkgs.git] / pkgs / by-name / du / dummyhttp / package.nix
blobfc394a85fca1080f802dc32722ada308a9ff13e2
2   lib,
3   fetchFromGitHub,
4   rustPlatform,
5   darwin,
6   stdenv,
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "dummyhttp";
11   version = "1.1.0";
13   src = fetchFromGitHub {
14     owner = "svenstaro";
15     repo = "dummyhttp";
16     rev = "v${version}";
17     hash = "sha256-LgOIL4kg3cH0Eo+Z+RGwxZTPzCNSGAdKT7N8tZWHSQQ=";
18   };
20   cargoHash = "sha256-bw0VlPHjNZkpLVJZrB3aaQGkwvQpkJGIn+hi0yn2M4s=";
22   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
23     darwin.apple_sdk.frameworks.Security
24   ];
26   meta = with lib; {
27     description = "Super simple HTTP server that replies a fixed body with a fixed response code";
28     homepage = "https://github.com/svenstaro/dummyhttp";
29     license = with licenses; [ mit ];
30     maintainers = with maintainers; [ GuillaumeDesforges ];
31     mainProgram = "dummyhttp";
32   };