nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 942 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6 sqlite, 7 zstd, 8 nixosTests, 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "wastebin"; 13 version = "3.4.0"; 14 15 src = fetchFromGitHub { 16 owner = "matze"; 17 repo = "wastebin"; 18 rev = version; 19 hash = "sha256-cujMs7R6CBSsoQ3p8PyHAJYwWjd8NGYX+qMB4ntrorg="; 20 }; 21 22 cargoHash = "sha256-wS4WkOjaDTlrIEjeSTmEqzfC1XZgXQUTqpfs7FYr60Y="; 23 24 nativeBuildInputs = [ 25 pkg-config 26 ]; 27 28 buildInputs = [ 29 sqlite 30 zstd 31 ]; 32 33 env = { 34 ZSTD_SYS_USE_PKG_CONFIG = true; 35 }; 36 37 passthru.tests = { 38 inherit (nixosTests) wastebin; 39 }; 40 41 meta = { 42 description = "Pastebin service"; 43 homepage = "https://github.com/matze/wastebin"; 44 changelog = "https://github.com/matze/wastebin/blob/${src.rev}/CHANGELOG.md"; 45 license = lib.licenses.mit; 46 maintainers = with lib.maintainers; [ 47 pinpox 48 matthiasbeyer 49 ]; 50 mainProgram = "wastebin"; 51 }; 52}