lol

Merge pull request #284636 from dlip/turbo-update-1_11_3

authored by

Sandro and committed by
GitHub
8a07e4df d1238f35

+4 -102
+3 -101
pkgs/tools/misc/turbo/default.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchFromGitHub 4 - , buildGo120Module 5 - , git 6 - , nodejs 7 - , capnproto 8 4 , protobuf 9 - , protoc-gen-go 10 - , protoc-gen-go-grpc 11 5 , rustPlatform 12 6 , pkg-config 13 7 , openssl ··· 17 11 , testers 18 12 , turbo 19 13 , nix-update-script 20 - , go 21 - , zlib 22 - , libiconv 23 - , Security 24 14 , IOKit 25 15 , CoreServices 26 16 , CoreFoundation 17 + , capnproto 27 18 }: 28 - let 19 + rustPlatform.buildRustPackage rec{ 20 + pname = "turbo"; 29 21 version = "1.11.3"; 30 22 src = fetchFromGitHub { 31 23 owner = "vercel"; ··· 33 25 rev = "v${version}"; 34 26 hash = "sha256-hjJXbGct9ZmriKdVjB7gwfmFsV1Tv57V7DfUMFZ8Xv0="; 35 27 }; 36 - 37 - ffi = rustPlatform.buildRustPackage { 38 - pname = "turbo-ffi"; 39 - inherit src version; 40 - cargoBuildFlags = [ "--package" "turborepo-ffi" ]; 41 - 42 - cargoHash = "sha256-3eN8/nBARuaezlzPjAL0YPEPvNqm6jNQAREth8PgcSQ="; 43 - 44 - RUSTC_BOOTSTRAP = 1; 45 - nativeBuildInputs = [ 46 - pkg-config 47 - extra-cmake-modules 48 - protobuf 49 - ]; 50 - buildInputs = [ 51 - openssl 52 - fontconfig 53 - ]; 54 - 55 - doCheck = false; 56 - 57 - postInstall = '' 58 - cp target/release-tmp/libturborepo_ffi.a $out/lib 59 - ''; 60 - }; 61 - 62 - 63 - go-turbo = buildGo120Module { 64 - inherit src version; 65 - pname = "go-turbo"; 66 - modRoot = "cli"; 67 - 68 - proxyVendor = true; 69 - vendorHash = "sha256-JHTg9Gcc0DVdltTGCUaOPSVxL0XVkwPJQm/LoKffU/o="; 70 - 71 - nativeBuildInputs = [ 72 - git 73 - nodejs 74 - protobuf 75 - protoc-gen-go 76 - protoc-gen-go-grpc 77 - ]; 78 - 79 - buildInputs = [zlib ] ++ lib.optionals stdenv.isDarwin [ 80 - Security 81 - libiconv 82 - ]; 83 - 84 - ldflags = [ 85 - "-s -w" 86 - "-X main.version=${version}" 87 - "-X main.commit=${src.rev}" 88 - "-X main.date=1970-01-01-00:00:01" 89 - "-X main.builtBy=goreleaser" 90 - ]; 91 - 92 - preBuild = '' 93 - make compile-protos 94 - cp ${ffi}/lib/libturborepo_ffi.a ./internal/ffi/libturborepo_ffi_${go.GOOS}_${go.GOARCH}.a 95 - ''; 96 - 97 - preCheck = '' 98 - # Some tests try to run mkdir $HOME 99 - HOME=$TMP 100 - 101 - # Test_getTraversePath requires that source is a git repo 102 - # pwd: /build/source/cli 103 - pushd .. 104 - git config --global init.defaultBranch main 105 - git init 106 - popd 107 - 108 - # package_deps_hash_test.go:492: hash of child-dir/libA/pkgignorethisdir/file, got 67aed78ea231bdee3de45b6d47d8f32a0a792f6d want go-turbo> package_deps_hash_test.go:499: found extra hashes in map[.gitignore:3237694bc3312ded18386964 a855074af7b066af some-dir/another-one:7e59c6a6ea9098c6d3beb00e753e2c54ea502311 some-dir/excluded-file:7e59 c6a6ea9098c6d3beb00e753e2c54ea502311 some-dir/other-file:7e59c6a6ea9098c6d3beb00e753e2c54ea502311 some-fil e:7e59c6a6ea9098c6d3beb00e753e2c54ea502311] 109 - rm ./internal/hashing/package_deps_hash_test.go 110 - rm ./internal/hashing/package_deps_hash_go_test.go 111 - # Error: Not equal: 112 - # expected: env.DetailedMap{All:env.EnvironmentVariableMap(nil), BySource:env.BySource{Explicit:env.EnvironmentVariableMap{}, Matching:env.EnvironmentVariableMap{}}} 113 - # actual : env.DetailedMap{All:env.EnvironmentVariableMap{}, BySource:env.BySource{Explicit:env.EnvironmentVariableMap{}, Matching:env.EnvironmentVariableMap{}}} 114 - rm ./internal/run/global_hash_test.go 115 - ''; 116 - 117 - }; 118 - in 119 - rustPlatform.buildRustPackage { 120 - pname = "turbo"; 121 - inherit src version; 122 28 cargoBuildFlags = [ 123 29 "--package" 124 30 "turbo" ··· 143 49 CoreServices 144 50 CoreFoundation 145 51 ]; 146 - 147 - postInstall = '' 148 - ln -s ${go-turbo}/bin/turbo $out/bin/go-turbo 149 - ''; 150 52 151 53 # Browser tests time out with chromium and google-chrome 152 54 doCheck = false;
+1 -1
pkgs/top-level/all-packages.nix
··· 14137 14137 tuptime = callPackage ../tools/system/tuptime { }; 14138 14138 14139 14139 turbo = callPackage ../tools/misc/turbo { 14140 - inherit (darwin.apple_sdk_11_0.frameworks) Security IOKit CoreServices CoreFoundation; 14140 + inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreServices CoreFoundation; 14141 14141 }; 14142 14142 14143 14143 turses = callPackage ../applications/networking/instant-messengers/turses { };