2022-05-18 14:49:53 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, gtest, openssl, pe-parse }:
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "uthenticode";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.0.1";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trailofbits";
|
|
|
|
repo = "uthenticode";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-NGVOGXMRlgpSRw56jr63rJc/5/qCmPjtAFa0D21ogd4=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
cmakeFlags = [ "-DBUILD_TESTS=1" "-DUSE_EXTERNAL_GTEST=1" ];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ gtest ];
|
2022-05-18 14:49:53 +00:00
|
|
|
buildInputs = [ pe-parse openssl ];
|
2021-01-15 22:18:51 +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 ];
|
|
|
|
};
|
|
|
|
}
|