depot/third_party/nixpkgs/pkgs/servers/rustypaste/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

31 lines
901 B
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "rustypaste";
version = "0.7.1";
src = fetchFromGitHub{
owner = "orhun";
repo = pname;
rev = "v${version}";
sha256 = "sha256-NGrz08cpio745oVYtfNO1jpViYLaxZ9ZRXQdQG/f0oM=";
};
cargoSha256 = "sha256-UQNe2O664PXvcSu6MI5F8RdYJJholjF9iO2I5OSMm2A=";
# Some tests need network
checkFlags = [
"--skip paste::tests::test_paste_data"
"--skip server::tests::test_upload_file"
"--skip server::tests::test_upload_remote_file"
"--skip util::tests::test_get_expired_files"
];
meta = with lib; {
description = "A minimal file upload/pastebin service";
homepage = "https://github.com/orhun/rustypaste";
changelog = "https://github.com/orhun/rustypaste/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ seqizz ];
};
}