nixpkgs/pkgs/development/tools/boost-build/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

37 lines
804 B
Nix

{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "boost-build";
version = "2016.03";
src = fetchFromGitHub {
owner = "boostorg";
repo = "build";
rev = version;
sha256 = "1qw5marmp7z09nwcjlqrmqdg9b6myfqj3zvfz888x9mbidrmhn6p";
};
hardeningDisable = [ "format" ];
patchPhase = ''
grep -r '/usr/share/boost-build' \
| awk '{split($0,a,":"); print a[1];}' \
| xargs sed -i "s,/usr/share/boost-build,$out/share/boost-build,"
'';
buildPhase = ''
./bootstrap.sh
'';
installPhase = ''
./b2 install --prefix=$out
'';
meta = with stdenv.lib; {
homepage = http://www.boost.org/boost-build2/;
license = stdenv.lib.licenses.boost;
platforms = platforms.unix;
maintainers = with maintainers; [ ivan-tkatchev ];
};
}