git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #109378 from arcz/uthenticode

uthenticode: init at 1.0.4

commit78970e62f6a3bce75c6daa6e985fb0a27ed4f367 authorSandro <sandro.jaeckel@gmail.com> dateFri 15 Jan 2021, 16:18 (6 years ago) parent95e1ba36429b45
2 files changed+39
pkgs/development/libraries/uthenticode/default.nix+37 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/uthenticode/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ stdenv, lib, fetchFromGitHub, fetchpatch, cmake, gtest, openssl, pe-parse }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "uthenticode";
5+ version = "1.0.4";
6+
7+ src = fetchFromGitHub {
8+ owner = "trailofbits";
9+ repo = "uthenticode";
10+ rev = "v${version}";
11+ sha256 = "16j91cki63zk4d7wzwvq8al98l8hmvcdil3vfp44ink4q4bfswkx";
12+ };
13+
14+ patches = [
15+ # adds USE_SYSTEM_GTEST cmake flag, the patch won't be necessary in next versions
16+ (fetchpatch {
17+ url = "https://github.com/trailofbits/uthenticode/commit/7a4c5499c8e5ea7bfae1c620e1f96c112866b1dd.patch";
18+ sha256 = "17637j5zwp71jmi803mv1z04arld3k3kmrm8nvrkpg08q5kizh28";
19+ })
20+ ];
21+
22+ cmakeFlags = [ "-DBUILD_TESTS=1" "-DUSE_SYSTEM_GTEST=1" ];
23+
24+ nativeBuildInputs = [ cmake ];
25+ buildInputs = [ pe-parse openssl gtest ];
26+
27+ doCheck = true;
28+ checkPhase = "test/uthenticode_test";
29+
30+ meta = with lib; {
31+ description = "A small cross-platform library for verifying Authenticode digital signatures.";
32+ homepage = "https://github.com/trailofbits/uthenticode";
33+ license = licenses.mit;
34+ platforms = platforms.unix;
35+ maintainers = with maintainers; [ arturcygan ];
36+ };
37+}
pkgs/top-level/all-packages.nix+2
@@ -16938,6 +16938,8 @@ in
1693816938
1693916939 uthash = callPackage ../development/libraries/uthash { };
1694016940
16941+ uthenticode = callPackage ../development/libraries/uthenticode { };
16942+
1694116943 utmps = skawarePackages.utmps;
1694216944
1694316945 ucommon = ucommon_openssl;