nixpkgs-suyu/pkgs/development/libraries/libb64/default.nix
2021-07-17 22:39:35 +02:00

26 lines
666 B
Nix

{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
pname = "libb64";
version = "1.2";
src = fetchurl {
url = "http://download.draios.com/dependencies/libb64-1.2.src.zip";
sha256 = "1lxzi6v10qsl2r6633dx0zwqyvy0j19nmwclfd0d7qybqmhqsg9l";
};
nativeBuildInputs = [ 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 = {
description = "ANSI C routines for fast base64 encoding/decoding";
license = lib.licenses.publicDomain;
platforms = lib.platforms.unix;
};
}