1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 04:48:10 +00:00
nixpkgs/pkgs/development/libraries/libb64/default.nix
Tuomas Tynkkynen 21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00

28 lines
677 B
Nix

{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "libb64-${version}";
version = "1.2";
src = fetchurl {
url = "http://download.draios.com/dependencies/libb64-1.2.src.zip";
md5 = "a609809408327117e2c643bed91b76c5";
};
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";
license = stdenv.lib.licenses.publicDomain;
platforms = stdenv.lib.platforms.unix;
};
}