blob: cdc5feb24b801ee53c88c86524b2b674813d28c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, sqlite
, zstd
, stdenv
, darwin
, nixosTests
}:
rustPlatform.buildRustPackage rec {
pname = "wastebin";
version = "2.5.0";
src = fetchFromGitHub {
owner = "matze";
repo = "wastebin";
rev = version;
hash = "sha256-abqVjjV1RK9F8xo23Ir8jqoo9jqSe/Kra1IJNHadqXs=";
};
cargoHash = "sha256-D/a+aEK4Usa4HFOKCxCIy9bHabH5tmBdFRRRQ7aKs/I=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
sqlite
zstd
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration
];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
passthru.tests = {
inherit (nixosTests) wastebin;
};
meta = with lib; {
description = "Wastebin is a pastebin";
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";
};
}
|