nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 44 lines 946 B view raw
1{ lib, stdenv 2, fetchurl 3, pkgs 4, fixDarwinDylibNames 5}: 6stdenv.mkDerivation rec { 7 pname = "build2-bootstrap"; 8 version = "0.15.0"; 9 src = fetchurl { 10 url = "https://download.build2.org/${version}/build2-toolchain-${version}.tar.xz"; 11 sha256 = "1i1p52fr5sjs5yz6hqhljwhc148mvs4fyq0cf7wjg5pbv9wzclji"; 12 }; 13 patches = [ 14 # Pick up sysdirs from NIX_LDFLAGS 15 ./nix-ldflags-sysdirs.patch 16 ]; 17 18 sourceRoot = "build2-toolchain-${version}/build2"; 19 makefile = "bootstrap.gmake"; 20 enableParallelBuilding = true; 21 22 setupHook = ./setup-hook.sh; 23 24 strictDeps = true; 25 26 propagatedBuildInputs = lib.optionals stdenv.targetPlatform.isDarwin [ 27 fixDarwinDylibNames 28 ]; 29 30 doCheck = true; 31 checkPhase = '' 32 runHook preCheck 33 build2/b-boot --version 34 runHook postCheck 35 ''; 36 37 installPhase = '' 38 runHook preInstall 39 install -D build2/b-boot $out/bin/b 40 runHook postInstall 41 ''; 42 43 inherit (pkgs.build2) passthru; 44}