about summary refs log tree commit diff
path: root/pkgs/development/tools/pactorio
diff options
context:
space:
mode:
authorStéphan Kochen <git@stephank.nl>2021-05-18 11:39:57 +0200
committerStéphan Kochen <git@stephank.nl>2021-05-18 11:39:57 +0200
commit049d5a7219f712576d25f262a2d645f52e672219 (patch)
tree691e519a43ccf0ccf16ae1047a852d9b3187b618 /pkgs/development/tools/pactorio
parenta1d1f086c75554efdc9017d40590560abd8bbfc7 (diff)
pactorio: fix darwin build
Diffstat (limited to 'pkgs/development/tools/pactorio')
-rw-r--r--pkgs/development/tools/pactorio/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/tools/pactorio/default.nix b/pkgs/development/tools/pactorio/default.nix
index d29e124437818..8defc8c06caa5 100644
--- a/pkgs/development/tools/pactorio/default.nix
+++ b/pkgs/development/tools/pactorio/default.nix
@@ -1,4 +1,4 @@
-{ fetchFromGitHub, installShellFiles, lib, rustPlatform }:
+{ fetchFromGitHub, installShellFiles, lib, stdenv, rustPlatform, Security }:
 
 rustPlatform.buildRustPackage rec {
   pname = "pactorio";
@@ -14,6 +14,7 @@ rustPlatform.buildRustPackage rec {
   cargoSha256 = "1m7bvi6i52xqvssjx5fr2dz25ny7hkmb8w8p23pczpdmpd2y0r7r";
 
   nativeBuildInputs = [ installShellFiles ];
+  buildInputs = lib.optional stdenv.isDarwin Security;
 
   preFixup = ''
     completions=($releaseDir/build/pactorio-*/out/completions)