mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
31 lines
845 B
Nix
31 lines
845 B
Nix
{ stdenv, lib, fetchFromGitHub, cmake, gtest, openssl, pe-parse }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "uthenticode";
|
|
version = "1.0.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trailofbits";
|
|
repo = "uthenticode";
|
|
rev = "v${version}";
|
|
hash = "sha256-MEpbvt03L501BP42j6S7rXE9j1d8j6D2Y5kgPNlbHzc=";
|
|
};
|
|
|
|
cmakeFlags = [ "-DBUILD_TESTS=1" "-DUSE_EXTERNAL_GTEST=1" ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
nativeCheckInputs = [ gtest ];
|
|
buildInputs = [ pe-parse openssl ];
|
|
|
|
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 ];
|
|
};
|
|
}
|