mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
31 lines
842 B
Nix
31 lines
842 B
Nix
{ stdenv, lib, fetchFromGitHub, cmake, gtest, openssl, pe-parse }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "uthenticode";
|
|
version = "2.0.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trailofbits";
|
|
repo = "uthenticode";
|
|
rev = "v${version}";
|
|
hash = "sha256-NGVOGXMRlgpSRw56jr63rJc/5/qCmPjtAFa0D21ogd4=";
|
|
};
|
|
|
|
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 = "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 ];
|
|
};
|
|
}
|