about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libksi/default.nix
blob: b4e9f2bdf88501edd30db02d1f05dc987ac38cfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchFromGitHub, autoreconfHook, openssl, curl }:

stdenv.mkDerivation {
  name = "libksi-2015-07-03";

  src = fetchFromGitHub {
    owner = "Guardtime";
    repo = "libksi";
    rev = "b82dd65bd693722db92397cbe0920170e0d2ae1c";
    sha256 = "1sqd31l55kx6knl0sg26ail1k5rgmamq8760p6aj7bpb4jwb8r1n";
  };

  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [ openssl curl ];

  configureFlags = [
    "--with-openssl=${openssl.dev}"
    "--with-cafile=/etc/ssl/certs/ca-certificates.crt"
  ];

  meta = with stdenv.lib; {
    homepage = https://github.com/GuardTime/libksi;
    description = "Keyless Signature Infrastructure API library";
    license = licenses.asl20;
    platforms = platforms.all;
  };
}