diff options
author | Marek Fajkus <marek.faj@gmail.com> | 2021-01-23 14:28:08 +0100 |
---|---|---|
committer | Marek Fajkus <marek.faj@gmail.com> | 2021-01-23 14:28:08 +0100 |
commit | 07a6732bf5bc2a6328eeb89bf18a68f7c0e1b4cf (patch) | |
tree | 009764b5b1c0affa9fdf4412755e8c8c41b3df0f /pkgs/development/compilers/elm | |
parent | bba33c36fa09d86c26c5f34c46a6743abf607fa4 (diff) | |
download | nixpkgs-07a6732bf5bc2a6328eeb89bf18a68f7c0e1b4cf.tar nixpkgs-07a6732bf5bc2a6328eeb89bf18a68f7c0e1b4cf.tar.gz nixpkgs-07a6732bf5bc2a6328eeb89bf18a68f7c0e1b4cf.tar.bz2 nixpkgs-07a6732bf5bc2a6328eeb89bf18a68f7c0e1b4cf.tar.lz nixpkgs-07a6732bf5bc2a6328eeb89bf18a68f7c0e1b4cf.tar.xz nixpkgs-07a6732bf5bc2a6328eeb89bf18a68f7c0e1b4cf.tar.zst nixpkgs-07a6732bf5bc2a6328eeb89bf18a68f7c0e1b4cf.zip |
Fix elm-json build on Darwin
Diffstat (limited to 'pkgs/development/compilers/elm')
-rw-r--r-- | pkgs/development/compilers/elm/default.nix | 5 | ||||
-rw-r--r-- | pkgs/development/compilers/elm/packages/elm-json.nix | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/development/compilers/elm/default.nix b/pkgs/development/compilers/elm/default.nix index 459efde218a..7ee9e6e5d61 100644 --- a/pkgs/development/compilers/elm/default.nix +++ b/pkgs/development/compilers/elm/default.nix @@ -2,7 +2,8 @@ , haskell, nodejs , fetchurl, fetchpatch, makeWrapper, writeScriptBin # Rust dependecies -, rustPlatform, openssl, pkg-config }: +, rustPlatform, openssl, pkg-config, Security +}: let fetchElmDeps = import ./fetchElmDeps.nix { inherit stdenv lib fetchurl; }; @@ -96,7 +97,7 @@ let elmRustPackages = { elm-json = import ./packages/elm-json.nix { - inherit rustPlatform fetchurl openssl stdenv pkg-config; + inherit lib rustPlatform fetchurl openssl stdenv pkg-config Security; } // { meta = with lib; { description = "Install, upgrade and uninstall Elm dependencies"; diff --git a/pkgs/development/compilers/elm/packages/elm-json.nix b/pkgs/development/compilers/elm/packages/elm-json.nix index 7a8143174f9..810c1a91a00 100644 --- a/pkgs/development/compilers/elm/packages/elm-json.nix +++ b/pkgs/development/compilers/elm/packages/elm-json.nix @@ -1,4 +1,4 @@ -{ rustPlatform, fetchurl, openssl, stdenv, pkg-config }: +{ lib, rustPlatform, fetchurl, openssl, stdenv, pkg-config, Security }: rustPlatform.buildRustPackage rec { pname = "elm-json"; version = "0.2.7"; @@ -12,7 +12,7 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl ]; + buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ]; cargoSha256 = "0ylniriq073kpiykamkn9mxdaa6kyiza4pvf7gnfq2h1dvbqa6z7"; |