nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 939 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "rustypaste"; 9 version = "0.16.1"; 10 11 src = fetchFromGitHub { 12 owner = "orhun"; 13 repo = "rustypaste"; 14 rev = "v${version}"; 15 sha256 = "sha256-Jfi2Q6551g58dfOqtHtWxkbxwYV71f7MIuLB8RbaR94="; 16 }; 17 18 cargoHash = "sha256-10tBbn4XtdUNhfzb+KpwFGZAc7YVIEQRaqNLzJC1GGI="; 19 20 dontUseCargoParallelTests = true; 21 22 checkFlags = [ 23 # requires internet access 24 "--skip=paste::tests::test_paste_data" 25 "--skip=server::tests::test_upload_remote_file" 26 ]; 27 28 __darwinAllowLocalNetworking = true; 29 30 meta = { 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 = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ 36 seqizz 37 ]; 38 mainProgram = "rustypaste"; 39 }; 40}