summaryrefslogtreecommitdiff
path: root/pkgs/libraries/base64c/default.nix
blob: 9cb6def3acb9f73db97da43b9b6739c44f2a8ccf (plain)
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, lib, fetchgit
, bootstrapHook, pkg-config
, check
}:

stdenv.mkDerivation rec {
  pname = "base64c";
  version = "0.2.1";
  meta = with lib; {
    homepage = "https://gitlab.nic.cz/turris/base64c";
    description = "Base64 encoding/decoding library for C";
    license = licenses.mit;
  };

  src = fetchgit {
    url = "https://gitlab.nic.cz/turris/base64c.git";
    rev = "v" + version;
    sha256 = "09qgx2qcni6cmk9mwiis843wgp3f85mh2c3sm0w37ib0bcxdvq7x";
  };

  nativeBuildInputs = [bootstrapHook pkg-config];
  depsBuildBuild = [check];

  doCheck = true;
  doInstallCheck = true;
  configureFlags = lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) "--enable-tests";
}