Files
nixpkgs/pkgs/by-name/wa/wastebin/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
944 B
Nix

{
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";
};
}