nixpkgs/pkgs/development/libraries/boost/header-only-wrapper.nix
Aristid Breitkreuz f923c32204 boost: fix hardcoded hash
Closes #1209

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
2013-11-12 23:02:39 +00:00

29 lines
655 B
Nix

{ stdenv, fetchurl, boost }:
let
version = stdenv.lib.removePrefix "boost-" boost.name;
pkgid = stdenv.lib.replaceChars ["-" "."] ["_" "_"] boost.name;
in
stdenv.mkDerivation {
name = "boost-headers-${version}";
src = boost.src;
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/include
tar xf $src -C $out/include --strip-components=1 ${pkgid}/boost
'';
meta = {
homepage = "http://boost.org/";
description = "Boost C++ Library Collection";
license = "boost-license";
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.viric stdenv.lib.maintainers.simons ];
};
}