blob: 4738ccd74a9c07161f787865a897db9e5236bce6 (
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
|
{ lib
, stdenv
, fetchFromGitHub
, cmake
, fetchpatch
, pkg-config
, curl
, openssl
}:
stdenv.mkDerivation rec {
pname = "osslsigncode";
version = "2.5";
src = fetchFromGitHub {
owner = "mtrojnar";
repo = pname;
rev = version;
sha256 = "sha256-33uT9PFD1YEIMzifZkpbl2EAoC98IsM72K4rRjDfh8g=";
};
patches = [
# Cygwin patch is prereq for Darwin fix applying -- committed to master after 2.5 release
(fetchpatch {
url = "https://github.com/mtrojnar/osslsigncode/commit/1c678bf926b78c947b14c46c3ce88e06268c738e.patch";
sha256 = "sha256-vOBMGIJ3PHJTvmsXRRfAUJRi7P929PcfmrUiRuM0pf4=";
})
# Fix build on Darwin when clang not identified as Apple (https://github.com/mtrojnar/osslsigncode/pull/247)
(fetchpatch {
url = "https://github.com/charles-dyfis-net/osslsigncode/commit/b2ed89b35c8a26faa7eb6515fecaff3c4c5f7fed.patch";
sha256 = "sha256-FGKZK/IzHbbkTzSoAtpC75z79d5+qQvvJrjEDY31WJ0=";
})
];
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ curl openssl ];
meta = with lib; {
homepage = "https://github.com/mtrojnar/osslsigncode";
description = "OpenSSL based Authenticode signing for PE/MSI/Java CAB files";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ mmahut prusnak ];
platforms = platforms.all;
};
}
|