about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/lalrpop/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/lalrpop/default.nix')
-rw-r--r--nixpkgs/pkgs/development/tools/lalrpop/default.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/development/tools/lalrpop/default.nix b/nixpkgs/pkgs/development/tools/lalrpop/default.nix
index 0bc8bddefbd0..32e6ec7a35b2 100644
--- a/nixpkgs/pkgs/development/tools/lalrpop/default.nix
+++ b/nixpkgs/pkgs/development/tools/lalrpop/default.nix
@@ -1,6 +1,5 @@
 { lib
 , rustPlatform
-, rust
 , fetchFromGitHub
 , substituteAll
 , stdenv
@@ -24,7 +23,7 @@ rustPlatform.buildRustPackage rec {
   patches = [
     (substituteAll {
       src = ./use-correct-binary-path-in-tests.patch;
-      target_triple = rust.toRustTarget stdenv.hostPlatform;
+      target_triple = stdenv.hostPlatform.rust.rustcTarget;
     })
   ];