about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-21 06:08:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-03-21 06:08:00 -0500
commit2d271bdd4cc8767304111a5a5a1b626d37292681 (patch)
tree66893676028c98f9640d50ac7e55491e3218916f
parentf729bd752f1c4e493fa60d5f035d0c3072ca7e61 (diff)
downloadnixlib-2d271bdd4cc8767304111a5a5a1b626d37292681.tar
nixlib-2d271bdd4cc8767304111a5a5a1b626d37292681.tar.gz
nixlib-2d271bdd4cc8767304111a5a5a1b626d37292681.tar.bz2
nixlib-2d271bdd4cc8767304111a5a5a1b626d37292681.tar.lz
nixlib-2d271bdd4cc8767304111a5a5a1b626d37292681.tar.xz
nixlib-2d271bdd4cc8767304111a5a5a1b626d37292681.tar.zst
nixlib-2d271bdd4cc8767304111a5a5a1b626d37292681.zip
sops: fix build on darwin
-rw-r--r--pkgs/tools/security/sops/default.nix4
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/tools/security/sops/default.nix b/pkgs/tools/security/sops/default.nix
index 8aa2e219e7df..d028b9787dba 100644
--- a/pkgs/tools/security/sops/default.nix
+++ b/pkgs/tools/security/sops/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildGoModule, fetchFromGitHub }:
+{ stdenv, buildGoModule, fetchFromGitHub, CoreServices }:
 
 buildGoModule rec {
   pname = "sops";
@@ -13,6 +13,8 @@ buildGoModule rec {
 
   modSha256 = "0vhxd3dschj5i9sig6vpxzbl59cas1qa843akzmjnfjrrafb916y";
 
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
+
   meta = with stdenv.lib; {
     homepage = "https://github.com/mozilla/sops";
     description = "Mozilla sops (Secrets OPerationS) is an editor of encrypted files";
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 409df09a56b6..406587f7fec3 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -21782,7 +21782,9 @@ in
 
   sooperlooper = callPackage ../applications/audio/sooperlooper { };
 
-  sops = callPackage ../tools/security/sops { };
+  sops = callPackage ../tools/security/sops {
+    inherit (darwin.apple_sdk.frameworks) CoreServices;
+  };
 
   sorcer = callPackage ../applications/audio/sorcer { };