2022-04-27 01:27:54 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, gtest, openssl, pe-parse }:
|
2021-01-13 22:33:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "uthenticode";
|
2022-07-31 05:05:38 +00:00
|
|
|
version = "1.0.9";
|
2021-01-13 22:33:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trailofbits";
|
|
|
|
repo = "uthenticode";
|
|
|
|
rev = "v${version}";
|
2022-07-31 05:05:38 +00:00
|
|
|
hash = "sha256-MEpbvt03L501BP42j6S7rXE9j1d8j6D2Y5kgPNlbHzc=";
|
2021-01-13 22:33:35 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 01:27:20 +00:00
|
|
|
cmakeFlags = [ "-DBUILD_TESTS=1" "-DUSE_EXTERNAL_GTEST=1" ];
|
2021-01-13 22:33:35 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2022-04-27 01:27:20 +00:00
|
|
|
checkInputs = [ gtest ];
|
|
|
|
buildInputs = [ pe-parse openssl ];
|
2021-01-13 22:33:35 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "test/uthenticode_test";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A small cross-platform library for verifying Authenticode digital signatures.";
|
|
|
|
homepage = "https://github.com/trailofbits/uthenticode";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ arturcygan ];
|
|
|
|
};
|
|
|
|
}
|