blob: 98b504fc3510e7c29ab1bb0a5d7242ac30d546c9 (
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
|
{ lib, rustPlatform, fetchurl, makeWrapper, pkg-config, openssl, gitMinimal }:
rustPlatform.buildRustPackage rec {
pname = "pushmail";
version = "0.1.0";
src = fetchurl {
url = "https://git.qyliss.net/pushmail/snapshot/pushmail-${version}.tar.xz";
sha256 = "1lbz6nggzzaq9wgsscgv6ypn74mh5fc5z48pw0f5p0bl73vn2n17";
};
cargoSha256 = "1nr4gdnkzaafbl5xlzx3wz1lyax63g8qrdiq4i5dh1s585pxmvr0";
nativeBuildInputs = [ makeWrapper pkg-config ];
buildInputs = [ openssl ];
strictDeps = true;
postInstall = ''
wrapProgram $out/bin/pushmail \
--prefix PATH : ${lib.makeBinPath [ gitMinimal ]}
'';
meta = with lib; {
homepage = "https://git.qyliss.net/pushmail/about/";
description = "Send notification emails for direct pushes to a GitHub repository";
maintainers = with maintainers; [ qyliss ];
license = licenses.gpl2Plus; # with linking exception for OpenSSL
platforms = platforms.unix;
};
}
|