1 { lib, rustPlatform, fetchFromGitHub, stdenv, darwin }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-mDNWIqA3t8AGNTqryiH2q8Tvg4k5d0II3EBkf7tdoNo=";
14 cargoHash = "sha256-ZmlA6O/9ZVLHvBHMkY+hpb6Eb0o0RxfXpwop6BLCdWc=";
16 buildInputs = lib.optionals stdenv.isDarwin [
17 darwin.apple_sdk.frameworks.CoreServices
20 dontUseCargoParallelTests = true;
23 # requires internet access
24 "--skip=paste::tests::test_paste_data"
25 "--skip=server::tests::test_upload_remote_file"
28 __darwinAllowLocalNetworking = true;
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";