mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
31 lines
683 B
Nix
31 lines
683 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
|
|
'';
|
|
|
|
preferLocalBuild = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|