Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
944 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
sqlite,
zstd,
nixosTests,
}:
rustPlatform.buildRustPackage rec {
pname = "wastebin";
version = "3.3.0";
src = fetchFromGitHub {
owner = "matze";
repo = "wastebin";
rev = version;
hash = "sha256-L19Yz+vGNTdwJ3cYoGnx4m8/J6SMSg1Gbaqph8tQtfE=";
};
cargoHash = "sha256-BZlYb7ZRfCKUgO3R+l/ZpLctXHA2N6L3nYTVov2GolI=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
sqlite
zstd
];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
passthru.tests = {
inherit (nixosTests) wastebin;
};
meta = with lib; {
description = "Pastebin service";
homepage = "https://github.com/matze/wastebin";
changelog = "https://github.com/matze/wastebin/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [
pinpox
matthiasbeyer
];
mainProgram = "wastebin";
};
}