Unverified Commit 36c6b2e9 authored by 0x4A6F's avatar 0x4A6F
Browse files

atuin: use buildPackages.protobuf

parent 6263d23e
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@
, installShellFiles
, rustPlatform
, libiconv
, protobuf
, buildPackages
, darwin
, nixosTests
}:
@@ -35,9 +35,7 @@ rustPlatform.buildRustPackage rec {

  nativeBuildInputs = [ installShellFiles ];

  buildInputs = [
    protobuf
  ] ++ lib.optionals stdenv.isDarwin [
  buildInputs = lib.optionals stdenv.isDarwin [
    libiconv
    darwin.apple_sdk_11_0.frameworks.AppKit
    darwin.apple_sdk_11_0.frameworks.Security
@@ -45,8 +43,8 @@ rustPlatform.buildRustPackage rec {
  ];

  preBuild = ''
    export PROTOC=${protobuf}/bin/protoc
    export PROTOC_INCLUDE="${protobuf}/include";
    export PROTOC=${buildPackages.protobuf}/bin/protoc
    export PROTOC_INCLUDE="${buildPackages.protobuf}/include";
  '';

  postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''