Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 27 lines 700 B view raw
1{ stdenv, fetchurl, unzip }: 2 3stdenv.mkDerivation rec { 4 name = "libb64-${version}"; 5 version = "1.2"; 6 7 src = fetchurl { 8 url = "http://download.draios.com/dependencies/libb64-1.2.src.zip"; 9 sha256 = "1lxzi6v10qsl2r6633dx0zwqyvy0j19nmwclfd0d7qybqmhqsg9l"; 10 }; 11 12 buildInputs = [ unzip ]; 13 14 installPhase = '' 15 mkdir -p $out $out/lib $out/bin $out/include 16 cp -r include/* $out/include/ 17 cp base64/base64 $out/bin/ 18 cp src/libb64.a src/cencode.o src/cdecode.o $out/lib/ 19 ''; 20 21 meta = { 22 inherit version; 23 description = "ANSI C routines for fast base64 encoding/decoding"; 24 license = stdenv.lib.licenses.publicDomain; 25 platforms = stdenv.lib.platforms.unix; 26 }; 27}