Merge pull request #177040 from seqizz/g_addrustypaste

rustypaste: init at 0.7.1
This commit is contained in:
Christian Kögler 2022-08-16 16:56:39 +02:00 committed by GitHub
commit 00711cc7b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ 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 ];
};
}

View File

@ -10457,6 +10457,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
rustypaste = callPackage ../servers/rustypaste { };
rw = callPackage ../tools/misc/rw { };
rwc = callPackage ../tools/system/rwc { };