2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip }:
|
2015-12-12 20:24:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libb64";
|
2015-12-12 20:24:21 +00:00
|
|
|
version = "1.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.draios.com/dependencies/libb64-1.2.src.zip";
|
2016-09-06 01:42:33 +01:00
|
|
|
sha256 = "1lxzi6v10qsl2r6633dx0zwqyvy0j19nmwclfd0d7qybqmhqsg9l";
|
2015-12-12 20:24:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out $out/lib $out/bin $out/include
|
|
|
|
cp -r include/* $out/include/
|
|
|
|
cp base64/base64 $out/bin/
|
|
|
|
cp src/libb64.a src/cencode.o src/cdecode.o $out/lib/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit version;
|
|
|
|
description = "ANSI C routines for fast base64 encoding/decoding";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.publicDomain;
|
|
|
|
platforms = lib.platforms.unix;
|
2015-12-12 20:24:21 +00:00
|
|
|
};
|
|
|
|
}
|