From 2b42b1adbbd297eba7cd4a131c80854784f772ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCrkan=20G=C3=BCr?= Date: Thu, 9 Jun 2022 16:12:42 +0200 Subject: [PATCH] rustypaste: init at 0.7.1 --- pkgs/servers/rustypaste/default.nix | 31 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/servers/rustypaste/default.nix diff --git a/pkgs/servers/rustypaste/default.nix b/pkgs/servers/rustypaste/default.nix new file mode 100644 index 000000000000..a103ed8a461b --- /dev/null +++ b/pkgs/servers/rustypaste/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a6826bf03c8d..f87ea72dd63e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10039,6 +10039,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security; }; + rustypaste = callPackage ../servers/rustypaste { }; + rw = callPackage ../tools/misc/rw { }; rwc = callPackage ../tools/system/rwc { };