depot/third_party/nixpkgs/pkgs/development/libraries/libb64/default.nix
Default email 818c48e259 Project import generated by Copybara.
GitOrigin-RevId: 14aef06d9b3ad1d07626bdbb16083b83f92dc6c1
2021-10-04 09:37:57 -03:00

26 lines
638 B
Nix

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "libb64";
version = "2.0.0.1";
src = fetchFromGitHub {
owner = "libb64";
repo = "libb64";
rev = "v${version}";
sha256 = "sha256-9loDftr769qnIi00MueO86kjha2EiG9pnCLogp0Iq3c=";
};
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;
};
}