Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / rustypaste / default.nix
blob622c33b979204fa22841b6275838c6edcff879a8
1 { lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
3 rustPlatform.buildRustPackage rec {
4   pname = "rustypaste";
5   version = "0.15.0";
7   src = fetchFromGitHub {
8     owner = "orhun";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-mDNWIqA3t8AGNTqryiH2q8Tvg4k5d0II3EBkf7tdoNo=";
12   };
14   cargoHash = "sha256-ZmlA6O/9ZVLHvBHMkY+hpb6Eb0o0RxfXpwop6BLCdWc=";
16   buildInputs = lib.optionals stdenv.isDarwin [
17     darwin.apple_sdk.frameworks.CoreServices
18   ];
20   dontUseCargoParallelTests = true;
22   checkFlags = [
23     # requires internet access
24     "--skip=paste::tests::test_paste_data"
25     "--skip=server::tests::test_upload_remote_file"
26   ];
28   __darwinAllowLocalNetworking = true;
30   meta = with lib; {
31     description = "Minimal file upload/pastebin service";
32     homepage = "https://github.com/orhun/rustypaste";
33     changelog = "https://github.com/orhun/rustypaste/blob/v${version}/CHANGELOG.md";
34     license = licenses.mit;
35     maintainers = with maintainers; [ figsoda seqizz ];
36     mainProgram = "rustypaste";
37   };